feat: move users and base packages to common.nix

This commit is contained in:
Iain Learmonth 2025-06-10 21:40:49 +01:00
parent 3b810aebc0
commit 0c28afc6c5
2 changed files with 19 additions and 19 deletions

View file

@ -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
];
}

View file

@ -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;