From 08895833e51bdfd760f2b4915a3997c13fe65b13 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 26 Jan 2023 06:08:41 -0500 Subject: more refactoring --- hosts/glados-wsl/default.nix | 33 +++++++++++++++++---------------- hosts/glados-wsl/packages.nix | 19 ------------------- 2 files changed, 17 insertions(+), 35 deletions(-) delete mode 100644 hosts/glados-wsl/packages.nix (limited to 'hosts/glados-wsl') diff --git a/hosts/glados-wsl/default.nix b/hosts/glados-wsl/default.nix index d77baf6..bc9bdd2 100644 --- a/hosts/glados-wsl/default.nix +++ b/hosts/glados-wsl/default.nix @@ -1,22 +1,23 @@ { - config, - modulesPath, - pkgs, - ... + config, + modulesPath, + pkgs, + ... }: { - imports = [ - (modulesPath + "/profiles/minimal.nix") - ../common - ./packages.nix - ../../users/seth - ]; + imports = [ + (modulesPath + "/profiles/minimal.nix") + ../common + ../../users/seth + ]; - # enable non-free packages - nixpkgs.config.allowUnfree = true; + sys.wsl.enable = true; - # Enable nix flakes - nix.package = pkgs.nixFlakes; - nix.settings.experimental-features = ["nix-command" "flakes"]; + # enable non-free packages + nixpkgs.config.allowUnfree = true; - system.stateVersion = "22.11"; + # Enable nix flakes + nix.package = pkgs.nixFlakes; + nix.settings.experimental-features = ["nix-command" "flakes"]; + + system.stateVersion = "22.11"; } diff --git a/hosts/glados-wsl/packages.nix b/hosts/glados-wsl/packages.nix deleted file mode 100644 index dbb0091..0000000 --- a/hosts/glados-wsl/packages.nix +++ /dev/null @@ -1,19 +0,0 @@ -{pkgs, ...}: { - environment.systemPackages = with pkgs; [ - git - neofetch - nixos-option - pinentry-curses - python310 - vim - ]; - - programs = { - gnupg = { - agent = { - enable = true; - pinentryFlavor = "curses"; - }; - }; - }; -} -- cgit v1.2.3