Move users out to individual files

This commit is contained in:
John Locke 2024-03-17 09:21:24 -07:00
parent 37fb17d123
commit 706f8ab58e
6 changed files with 36 additions and 11 deletions

View file

@ -31,6 +31,7 @@
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
zramSwap.enable;
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
@ -61,14 +62,6 @@
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.john = {
isNormalUser = true;
description = "John";
extraGroups = [ "networkmanager" "wheel" "docker" ];
shell = pkgs.fish;
};
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0" "electron-25.9.0"
]; ];

View file

@ -33,11 +33,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1710272261, "lastModified": 1710631334,
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=", "narHash": "sha256-rL5LSYd85kplL5othxK5lmAtjyMOBg390sGBTb3LRMM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2", "rev": "c75037bbf9093a2acb617804ee46320d6d1fea5a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -11,6 +11,7 @@
../../../desktop ../../../desktop
../../../desktop/dev.nix ../../../desktop/dev.nix
../../../desktop/office.nix ../../../desktop/office.nix
../../../users/owners.nix
]; ];
networking.hostName = "valhalla"; # Define your hostname. networking.hostName = "valhalla"; # Define your hostname.

11
users/jill.nix Normal file
View file

@ -0,0 +1,11 @@
{pkgs, ...}: {
# Define a user account. Don't forget to set a password with passwd.
users.users.jill = {
isNormalUser = true;
description = "Jill";
extraGroups = [ "networkmanager" "wheel" "docker" ];
shell = pkgs.fish;
};
}

11
users/john.nix Normal file
View file

@ -0,0 +1,11 @@
{pkgs, ...}: {
# Define a user account. Don't forget to set a password with passwd.
users.users.john = {
isNormalUser = true;
description = "John";
extraGroups = [ "networkmanager" "wheel" "docker" ];
shell = pkgs.fish;
};
}

9
users/owners.nix Normal file
View file

@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./john.nix
./jill.nix
];
}