From bb015fc2449e737c102687fd23d891e7737a9fda Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 29 Jun 2024 02:55:19 -0500 Subject: [PATCH 1/3] Add grablet --- flake.nix | 28 ++++++++++++++++++++++++++++ nixos/beefcake.nix | 3 --- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index e701c28..94a650c 100644 --- a/flake.nix +++ b/flake.nix @@ -283,6 +283,34 @@ ]; }; + grablet = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = with nixosModules; [ + common + + outputs.diskoConfigurations.standard + hardware.nixosModules.common-cpu-intel-kaby-lake + hardware.nixosModules.common-pc-laptopp-ssd + graphical-workstation + laptop + gaming + + ./nixos/thablet.nix + + { + home-manager.users.daniel = { + imports = with homeManagerModules; [ + iex + cargo + linux-desktop-environment-config + ]; + }; + + powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; + } + ]; + }; + thinker = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = with nixosModules; [ diff --git a/nixos/beefcake.nix b/nixos/beefcake.nix index 279d7b8..b82c821 100644 --- a/nixos/beefcake.nix +++ b/nixos/beefcake.nix @@ -18,9 +18,6 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 networking.hostName = "beefcake"; imports = [ - ../modules/nixos/intel.nix - ../modules/nixos/fonts.nix - # TODO: break these modules out someday maybe? { # hardware From 011d57c17d29f3fec92b15a861de95c5dc549d31 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 29 Jun 2024 03:57:06 -0500 Subject: [PATCH 2/3] XRDP? --- modules/nixos/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 2f58a9e..3b72320 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -385,9 +385,9 @@ services.desktopManager.plasma6.enable = true; programs.dconf.enable = true; - # services.xrdp.enable = true; - # services.xrdp.defaultWindowManager = "plasma"; - # services.xrdp.openFirewall = false; + services.xrdp.enable = true; + services.xrdp.defaultWindowManager = "plasma"; + services.xrdp.openFirewall = false; environment.systemPackages = with pkgs; [ wl-clipboard From 2b86faa7fe27a2cab45d9ba9e577b79a0efc35e5 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 9 Jul 2024 11:12:55 -0500 Subject: [PATCH 3/3] Template --- templates/nix-flake/flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/nix-flake/flake.nix b/templates/nix-flake/flake.nix index 408d4f2..86a9be5 100644 --- a/templates/nix-flake/flake.nix +++ b/templates/nix-flake/flake.nix @@ -1,4 +1,6 @@ { + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + inputs.pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; inputs.pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs"; @@ -10,8 +12,8 @@ }: let systems = ["aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux"]; forSystems = nixpkgs.lib.genAttrs systems; - pkgsFor = system: import nixpkgs {inherit system;}; - genPkgs = f: (f (forSystems pkgsFor)); + pkgsFor = system: (import nixpkgs {inherit system;}); + genPkgs = func: (forSystems (system: func (pkgsFor system))); in { formatter = genPkgs (pkgs: pkgs.alejandra); @@ -26,7 +28,7 @@ devShells = genPkgs (pkgs: { nix = pkgs.mkShell { - buildInputs = with pkgs; [nil alejandra]; + packages = with pkgs; [nil alejandra]; inherit (self.outputs.checks.${pkgs.system}.pre-commit-check) shellHook; };