genesis
This commit is contained in:
commit
84276b751b
28 changed files with 629 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.directory
|
||||
*.swp
|
||||
result
|
||||
result-*
|
||||
|
||||
170
flake.lock
generated
Normal file
170
flake.lock
generated
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1777699697,
|
||||
"narHash": "sha256-Eg9b/rq/ECYwNwEXs5i9wHyhxNI0JrYx2srdI2uZMaQ=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "382052b74656a369c5408822af3f2501e9b1af81",
|
||||
"revCount": 94,
|
||||
"type": "git",
|
||||
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||
}
|
||||
},
|
||||
"flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1790898470,
|
||||
"narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "024633cd702b10285db5cb19b40ad48d2399ba60",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1792818383,
|
||||
"narHash": "sha256-199i7ubVSXTMl+0AAlL7cVCXSjcI+jWByMcimYjeMX0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "24f2190587513b9c2f73db112a17844ae912d965",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-26.05",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"import-tree": {
|
||||
"locked": {
|
||||
"lastModified": 1788467110,
|
||||
"narHash": "sha256-ljEMTXP/rH0tOvDzc9gzwww6KcHRPRnEHzd9lK48V7s=",
|
||||
"owner": "vic",
|
||||
"repo": "import-tree",
|
||||
"rev": "eb1b52eaecc57f7c136d07ae8a93e724dfecac46",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "vic",
|
||||
"repo": "import-tree",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"mnw": {
|
||||
"locked": {
|
||||
"lastModified": 1784154424,
|
||||
"narHash": "sha256-HRn4O1X2ShYtbq5Egji72/aemyc2cIQicjRZD9hBqM8=",
|
||||
"owner": "Gerg-L",
|
||||
"repo": "mnw",
|
||||
"rev": "0151d9fa87992cbeb67c86616fb9170dcec830b6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Gerg-L",
|
||||
"repo": "mnw",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1792898606,
|
||||
"narHash": "sha256-Mg3rRjsbMqhSMxop5PYMXos8SwAjejrxSgVThTvP9eg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1f607aa79b6356ed45d3cd3c8079c196e79efa2c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-26.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1790477367,
|
||||
"narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "f7cd230690d9fc982d06129f9189b101fddcfa3b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1791260994,
|
||||
"narHash": "sha256-Miqqk/ammqnTUxaoCyvtwoPeLbI1ksFyLxi/CazZpWY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "151fa4e8ddfdd8dd25d945ad94ed54a13de9f6e4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "151fa4e8ddfdd8dd25d945ad94ed54a13de9f6e4",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nvf": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"mnw": "mnw",
|
||||
"nixpkgs": [
|
||||
"nixpkgs-unstable"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1792889789,
|
||||
"narHash": "sha256-xpH3z+T5NELixXRjxGJ3mx30kz63Xt2B0ZfPWl7hcUg=",
|
||||
"owner": "NotAShelf",
|
||||
"repo": "nvf",
|
||||
"rev": "557d2eb05a76e5939e6a75351343cae5731a71f8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NotAShelf",
|
||||
"repo": "nvf",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"home-manager": "home-manager",
|
||||
"import-tree": "import-tree",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"nvf": "nvf"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
15
flake.nix
Normal file
15
flake.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
inputs = {
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
import-tree.url = "github:vic/import-tree";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/151fa4e8ddfdd8dd25d945ad94ed54a13de9f6e4";
|
||||
home-manager.url = "github:nix-community/home-manager/release-26.05";
|
||||
nvf.url = "github:NotAShelf/nvf";
|
||||
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nvf.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules);
|
||||
}
|
||||
17
modules/base/boot.nix
Normal file
17
modules/base/boot.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
flake.modules.nixos.base = {pkgs, ...}: {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 10;
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = true;
|
||||
timeout = 2;
|
||||
};
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
};
|
||||
}
|
||||
7
modules/base/configuration.nix
Normal file
7
modules/base/configuration.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
flake.modules.nixos.base = {modulesPath, ...}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
};
|
||||
}
|
||||
18
modules/base/doas.nix
Normal file
18
modules/base/doas.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
flake.modules.nixos.base = {
|
||||
security = {
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{
|
||||
groups = ["wheel"];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
sudo.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
45
modules/base/fonts.nix
Normal file
45
modules/base/fonts.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
flake.modules.nixos.base = {pkgs, ...}: {
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
# GUI
|
||||
inter
|
||||
corefonts
|
||||
roboto
|
||||
cantarell-fonts
|
||||
# internationalisation
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-color-emoji
|
||||
noto-fonts-monochrome-emoji
|
||||
unifont
|
||||
unifont_upper
|
||||
unifont-csur
|
||||
# terminal
|
||||
nerd-fonts.iosevka
|
||||
];
|
||||
|
||||
fontconfig = {
|
||||
antialias = true;
|
||||
subpixel.rgba = "rgb";
|
||||
hinting.enable = true;
|
||||
defaultFonts = {
|
||||
serif = ["Noto Serif"];
|
||||
sansSerif = ["Cantarell"];
|
||||
monospace = ["Iosevka Nerd Font"];
|
||||
emoji = ["Noto Color Emoji"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.nixos.kdePlasma = {
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.displayManager.sddm.settings.Theme.Font =
|
||||
lib.concatStrings config.fonts.fontconfig.defaultFonts.sansSerif;
|
||||
};
|
||||
}
|
||||
7
modules/base/locale.nix
Normal file
7
modules/base/locale.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
flake.modules.nixos.base = {
|
||||
time.timeZone = "Asia/Jakarta";
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
services.xserver.xkb.layout = "us";
|
||||
};
|
||||
}
|
||||
15
modules/base/nix-ld.nix
Normal file
15
modules/base/nix-ld.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
flake.modules.nixos.base = {pkgs, ...}: {
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [
|
||||
fuse
|
||||
e2fsprogs
|
||||
stdenv.cc.cc
|
||||
zlib
|
||||
alsa-lib
|
||||
expat
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
18
modules/base/nix.nix
Normal file
18
modules/base/nix.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
flake.modules.nixos.base = {
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
|
||||
optimise.automatic = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
8
modules/base/nixpkgs.nix
Normal file
8
modules/base/nixpkgs.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{self, ...}: {
|
||||
flake.modules.nixos.base = {
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = [self.overlays.default];
|
||||
};
|
||||
};
|
||||
}
|
||||
12
modules/base/overlays.nix
Normal file
12
modules/base/overlays.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{inputs, ...}: {
|
||||
perSystem = {
|
||||
pkgs,
|
||||
final,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
overlayAttrs = {
|
||||
unstable = import inputs.nixpkgs-unstable {inherit system;};
|
||||
};
|
||||
};
|
||||
}
|
||||
25
modules/base/programs.nix
Normal file
25
modules/base/programs.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
flake.modules.nixos.base = {
|
||||
programs = {
|
||||
fish.enable = true;
|
||||
|
||||
atuin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
sync_address = "https://api.atuin.sh";
|
||||
enter_accept = true;
|
||||
};
|
||||
};
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
config = {
|
||||
init.defaultBranch = "main";
|
||||
advice.defaultBranchName = false;
|
||||
gpg.format = "ssh";
|
||||
commit.gpgSign = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
21
modules/base/services.nix
Normal file
21
modules/base/services.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
flake.modules.nixos.base = {
|
||||
services = {
|
||||
fwupd.enable = true;
|
||||
locate.enable = true;
|
||||
openssh.enable = false;
|
||||
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
security.rtkit.enable = true;
|
||||
|
||||
# ssh-agent user service (SSH_AUTH_SOCK=%t/ssh-agent)
|
||||
programs.ssh.startAgent = true;
|
||||
};
|
||||
}
|
||||
39
modules/base/system-packages.nix
Normal file
39
modules/base/system-packages.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
flake.modules.nixos.base = {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nh
|
||||
alejandra
|
||||
git
|
||||
unstable.python315
|
||||
# system utils
|
||||
file
|
||||
firmware-updater
|
||||
mtr
|
||||
gnupg
|
||||
ddate
|
||||
testdisk
|
||||
tree
|
||||
wget
|
||||
btop
|
||||
plocate
|
||||
traceroute
|
||||
rlwrap
|
||||
entr
|
||||
unzip
|
||||
ffmpeg
|
||||
imagemagick
|
||||
gnome-disk-utility
|
||||
# oxidised utils
|
||||
fd
|
||||
bat
|
||||
xh
|
||||
tlrc
|
||||
dysk
|
||||
dust
|
||||
hyperfine
|
||||
ripgrep
|
||||
fzf
|
||||
eza
|
||||
];
|
||||
};
|
||||
}
|
||||
8
modules/flake-parts.nix
Normal file
8
modules/flake-parts.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.flake-parts.flakeModules.modules
|
||||
inputs.flake-parts.flakeModules.easyOverlay
|
||||
];
|
||||
|
||||
systems = [];
|
||||
}
|
||||
27
modules/gui/kde-plasma.nix
Normal file
27
modules/gui/kde-plasma.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
flake.modules.nixos.kdePlasma = {pkgs, ...}: {
|
||||
services = {
|
||||
displayManager.sddm.enable = true;
|
||||
desktopManager.plasma6.enable = true;
|
||||
};
|
||||
|
||||
environment = {
|
||||
plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
discover
|
||||
];
|
||||
|
||||
systemPackages = with pkgs.kdePackages; [
|
||||
kate
|
||||
elisa
|
||||
bluez-qt
|
||||
kalk
|
||||
filelight
|
||||
kamoso
|
||||
konversation
|
||||
kmail
|
||||
ktorrent
|
||||
kclock
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
9
modules/hosts/phostron/amd-microcode.nix
Normal file
9
modules/hosts/phostron/amd-microcode.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
};
|
||||
}
|
||||
21
modules/hosts/phostron/boot.nix
Normal file
21
modules/hosts/phostron/boot.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"nvme"
|
||||
"ehci_pci"
|
||||
"xhci_pci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
];
|
||||
kernelModules = [];
|
||||
};
|
||||
|
||||
kernelModules = ["kvm-amd"];
|
||||
extraModulePackages = [];
|
||||
};
|
||||
};
|
||||
}
|
||||
28
modules/hosts/phostron/configuration.nix
Normal file
28
modules/hosts/phostron/configuration.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
stateVersion = "26.05"; # i don't read comments!
|
||||
in {
|
||||
flake.modules.nixos.phostron = {lib, ...}: {
|
||||
system = {inherit stateVersion;};
|
||||
|
||||
networking.hostName = "phostron";
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
};
|
||||
|
||||
flake.modules.homeManager.coyote = {
|
||||
home = {inherit stateVersion;};
|
||||
};
|
||||
|
||||
flake.nixosConfigurations.phostron = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = with self.modules.nixos; [
|
||||
phostron
|
||||
base
|
||||
kdePlasma
|
||||
homeManagerModule
|
||||
coyote
|
||||
];
|
||||
};
|
||||
}
|
||||
5
modules/hosts/phostron/display-manager.nix
Normal file
5
modules/hosts/phostron/display-manager.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
flake.modules.nixos.kdePlasma = {
|
||||
services.displayManager.sddm.settings.Theme.CursorSize = 18;
|
||||
};
|
||||
}
|
||||
19
modules/hosts/phostron/file-systems.nix
Normal file
19
modules/hosts/phostron/file-systems.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/24fb172c-c29f-40c3-ae4d-ff652358563a";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/DFC9-994A";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0077" "dmask=0077"];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [{device = "/dev/disk/by-uuid/91d96247-85c3-4e0a-93a2-5632b96179b6";}];
|
||||
zramSwap.enable = true;
|
||||
};
|
||||
}
|
||||
9
modules/hosts/phostron/graphics.nix
Normal file
9
modules/hosts/phostron/graphics.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
hardware = {
|
||||
graphics.enable = true;
|
||||
graphics.enable32Bit = true;
|
||||
enableRedistributableFirmware = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
8
modules/hosts/phostron/networking.nix
Normal file
8
modules/hosts/phostron/networking.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
13
modules/hosts/phostron/printing.nix
Normal file
13
modules/hosts/phostron/printing.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {pkgs, ...}: {
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = with pkgs; [
|
||||
epson-escpr
|
||||
];
|
||||
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.extraBackends = with pkgs; [
|
||||
epsonscan2
|
||||
];
|
||||
};
|
||||
}
|
||||
5
modules/hosts/phostron/ssd.nix
Normal file
5
modules/hosts/phostron/ssd.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
services.fstrim.enable = true;
|
||||
};
|
||||
}
|
||||
26
modules/modules/home-manager-nixos-module.nix
Normal file
26
modules/modules/home-manager-nixos-module.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
inputs,
|
||||
self,
|
||||
...
|
||||
}: {
|
||||
flake.modules.nixos.homeManagerModule = {
|
||||
imports = [inputs.home-manager.nixosModules.home-manager];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "backup";
|
||||
users = {
|
||||
coyote = self.modules.homeManager.coyote;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.coyote = {
|
||||
home = {
|
||||
username = "coyote";
|
||||
homeDirectory = "/home/coyote";
|
||||
shell.enableShellIntegration = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
29
modules/users/coyote/configuration.nix
Normal file
29
modules/users/coyote/configuration.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
flake.modules.nixos.coyote = {pkgs, ...}: {
|
||||
users = {
|
||||
users.coyote = {
|
||||
isNormalUser = true;
|
||||
description = "coyote";
|
||||
uid = 1000;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"lp"
|
||||
"scanner"
|
||||
"video"
|
||||
"render"
|
||||
"input"
|
||||
"audio"
|
||||
"kvm"
|
||||
];
|
||||
};
|
||||
|
||||
mutableUsers = true;
|
||||
defaultUserShell = pkgs.fish;
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
NH_FLAKE = "/home/coyote/NixOS";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue