Add foxtrot

This commit is contained in:
Daniel Flanagan 2023-10-09 15:09:02 -05:00
parent d1449fa5cc
commit 186dc37971
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
6 changed files with 72 additions and 5 deletions

View file

@ -105,6 +105,9 @@
thinker = mkNixosUnstableSystem "x86_64-linux" [./nixos/thinker] (with outputs.homeManagerModules; [
thinker
]);
foxtrot = mkNixosUnstableSystem "x86_64-linux" [./nixos/foxtrot] (with outputs.homeManagerModules; [
foxtrot
]);
beefcake =
mkNixosUnstableSystem "x86_64-linux" [
inputs.api-lyte-dev.nixosModules.x86_64-linux.api-lyte-dev

View file

@ -23,7 +23,9 @@
desktop = import ./desktop.nix;
linux-desktop = import ./linux-desktop.nix;
sway = import ./sway.nix;
sway-laptop = import ./sway-laptop.nix;
dragon = import ./dragon.nix;
thinker = import ./thinker.nix;
foxtrot = import ./foxtrot.nix;
}

View file

@ -0,0 +1,6 @@
{outputs, ...}: {
imports = with outputs.homeManagerModules; [
sway
sway-laptop
];
}

View file

@ -0,0 +1,6 @@
{
wayland.windowManager.sway = {
# TODO: firefox initial open on workspace 2
# TODO: kitty initial open on workspace 1
};
}

View file

@ -1,10 +1,6 @@
{outputs, ...}: {
imports = with outputs.homeManagerModules; [
sway
sway-laptop
];
wayland.windowManager.sway = {
# TODO: firefox initial open on workspace 2
# TODO: kitty initial open on workspace 1
};
}

54
nixos/foxtrot/default.nix Normal file
View file

@ -0,0 +1,54 @@
{
flake,
inputs,
outputs,
lib,
# config,
pkgs,
...
}: {
networking.hostName = "foxtrot";
imports =
[
inputs.disko.nixosModules.disko
flake.diskoConfigurations.standard
]
++ (with outputs.nixosModules; [
desktop-usage
podman
postgres
wifi
])
++ [
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-pc-laptop-ssd
];
# TODO: hibernation? does sleep suffice?
# TODO: perform a hardware scan
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
# kernelParams = ["boot.shell_on_fail"];
kernelPackages = pkgs.linuxPackages_latest;
initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci"];
};
hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
services.printing.enable = true;
networking = {
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [22];
allowedUDPPorts = [];
};
};
system.stateVersion = "23.11";
}