From 0c28afc6c5f392b086efdfd76565d4a6d9e94bee Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 10 Jun 2025 21:40:49 +0100 Subject: [PATCH] feat: move users and base packages to common.nix --- nixos/common.nix | 20 +++++++++++++++++++- nixos/hosts/laptop/default.nix | 18 ------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/nixos/common.nix b/nixos/common.nix index fac3781..1a7869c 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { nix.settings.experimental-features = "nix-command flakes"; @@ -18,4 +18,22 @@ LC_TELEPHONE = "en_GB.UTF-8"; LC_TIME = "en_GB.UTF-8"; }; + + users.users.irl = { + isNormalUser = true; + description = "irl"; + extraGroups = [ + "networkmanager" + "wheel" + ]; + }; + + nixpkgs.config.allowUnfree = true; + + environment.systemPackages = with pkgs; [ + curl + home-manager + neovim + wget + ]; } diff --git a/nixos/hosts/laptop/default.nix b/nixos/hosts/laptop/default.nix index 21e6574..6c87681 100644 --- a/nixos/hosts/laptop/default.nix +++ b/nixos/hosts/laptop/default.nix @@ -32,24 +32,6 @@ pulse.enable = true; }; - users.users.irl = { - isNormalUser = true; - description = "irl"; - extraGroups = [ - "networkmanager" - "wheel" - ]; - }; - - nixpkgs.config.allowUnfree = true; - - environment.systemPackages = with pkgs; [ - curl - home-manager - neovim - wget - ]; - hardware.gpgSmartcards.enable = true; programs.gnupg.agent = { enable = true;