From f0ba111bbc06601078cbe2d7af3b6ec5649abc8e Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 7 Jan 2025 14:11:24 +0000 Subject: [PATCH 1/4] add lemp13 --- hosts/x86_64/lemp13.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hosts/x86_64/lemp13.nix diff --git a/hosts/x86_64/lemp13.nix b/hosts/x86_64/lemp13.nix new file mode 100644 index 0000000..f16be3e --- /dev/null +++ b/hosts/x86_64/lemp13.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + # Name your host machine + networking.hostName = "lemp13"; + + # System76 + hardware.system76.enableAll = true; +} + From 297c95f5c5d72dc5c2bea34cb018aed010c699f5 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 7 Jan 2025 14:28:09 +0000 Subject: [PATCH 2/4] add lemp13 to flake.nix --- flake.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/flake.nix b/flake.nix index 73744a9..12b980d 100644 --- a/flake.nix +++ b/flake.nix @@ -92,6 +92,34 @@ ]; }; + "lemp13" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + # Add Disko for disk management + disko.nixosModules.disko + ./disko-config.nix +# ./gnome.nix + ./lemp13.nix + ./configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.aaronh = import ./home.nix; + } + nixos-hardware.nixosModules.system76 + #nixos-hardware.nixosModules.system76-galp5-1650 + { + nix.settings = { + substituters = [ "https://cosmic.cachix.org/" ]; + trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ]; + }; + } + nixos-cosmic.nixosModules.default + ]; + }; + "drack" = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ From a6bf0f399b199ec0220c15be2426e9e799907033 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 7 Jan 2025 15:38:31 +0000 Subject: [PATCH 3/4] Edit configuration.nix for 24.11/25.04 --- configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index e5a2e2c..ef08d8e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -90,7 +90,7 @@ # Enable/Disable hardware ## Turn off PulseAudio - hardware.pulseaudio.enable = false; + services.pulseaudio.enable = false; # Enable Pipewire security.rtkit.enable = true; From 068659f1653a1306e29af5821353a66dae5d5918 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 7 Jan 2025 15:39:56 +0000 Subject: [PATCH 4/4] add COSMIC and system76 packages --- hosts/x86_64/lemp13.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/hosts/x86_64/lemp13.nix b/hosts/x86_64/lemp13.nix index f16be3e..64149ff 100644 --- a/hosts/x86_64/lemp13.nix +++ b/hosts/x86_64/lemp13.nix @@ -3,8 +3,23 @@ { # Name your host machine networking.hostName = "lemp13"; - + # System76 - hardware.system76.enableAll = true; -} + environment.systemPackages = with pkgs; [ + system76-keyboard-configurator + firmware-manager + # COSMIC Utils + cosmic-ext-tweaks + cosmic-ext-forecast + cosmic-ext-tasks + cosmic-ext-calculator + cosmic-ext-examine + stellarshot + ]; + + # COSMIC + services.desktopManager.cosmic.enable = true; + services.displayManager.cosmic-greeter.enable = true; + +}