Initial commit (after fork)

This commit is contained in:
Pedro Rey Anca 2024-07-08 18:00:42 +02:00
parent 5ebba8a939
commit 5fe3f69a17
111 changed files with 1428 additions and 1611 deletions

View file

@ -1,15 +1,17 @@
{ pkgs, inputs, username, host, ...}:
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
pkgs,
inputs,
username,
host,
...
}: {
imports = [inputs.home-manager.nixosModules.home-manager];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = { inherit inputs username host; };
extraSpecialArgs = {inherit inputs username host;};
users.${username} = {
imports =
if (host == "desktop") then
[ ./../home/default.desktop.nix ]
else [ ./../home ];
imports = [./../home];
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = "24.05";
@ -20,8 +22,8 @@
users.users.${username} = {
isNormalUser = true;
description = "${username}";
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = ["networkmanager" "wheel" "i2c" "libvirtd" "adbusers"];
shell = pkgs.zsh;
};
nix.settings.allowed-users = [ "${username}" ];
nix.settings.allowed-users = ["${username}"];
}