Merge branch 'nod'
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
./system-modules/sops.nix
|
./system-modules/sops.nix
|
||||||
./system-modules/sound.nix
|
./system-modules/sound.nix
|
||||||
./system-modules/sshd.nix
|
./system-modules/sshd.nix
|
||||||
./system-modules/base-packages.nix
|
|
||||||
./system-modules/input.nix
|
./system-modules/input.nix
|
||||||
./system-modules/syncthing.nix
|
./system-modules/syncthing.nix
|
||||||
./system-modules/tuda.nix
|
./system-modules/tuda.nix
|
||||||
@@ -61,6 +60,8 @@
|
|||||||
./system-modules/calendar/dicos.nix
|
./system-modules/calendar/dicos.nix
|
||||||
] else [
|
] else [
|
||||||
]);
|
]);
|
||||||
|
environment.systemPackages = import ./system-modules/base-packages.nix pkgs;
|
||||||
|
|
||||||
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
||||||
system.stateVersion = hyper.pkgs-version;
|
system.stateVersion = hyper.pkgs-version;
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|||||||
@@ -55,9 +55,10 @@ pkgs: rec {
|
|||||||
};
|
};
|
||||||
in ccolor // fcolor // xcolor;
|
in ccolor // fcolor // xcolor;
|
||||||
font = {
|
font = {
|
||||||
code = {
|
code = rec {
|
||||||
name = "JetBrainsMono Nerd Font";
|
name = "JetBrainsMono Nerd Font";
|
||||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||||
|
regular-path = "${package}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFont-Regular.ttf";
|
||||||
};
|
};
|
||||||
base = {
|
base = {
|
||||||
# name = "NewComputerModern08";
|
# name = "NewComputerModern08";
|
||||||
|
|||||||
232
flake.lock
generated
232
flake.lock
generated
@@ -153,7 +153,7 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_2": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_3"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1731533236,
|
||||||
@@ -234,6 +234,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home-manager24": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs24"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726989464,
|
||||||
|
"narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-24.05",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hyprcursor": {
|
"hyprcursor": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprlang": [
|
"hyprlang": [
|
||||||
@@ -475,27 +496,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hyprspace": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprland": [
|
|
||||||
"hyprland"
|
|
||||||
],
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1759033501,
|
|
||||||
"narHash": "sha256-QhcOFLJYC9CiSVPkci62ghMEAJChzl+L98To1pKvnRQ=",
|
|
||||||
"owner": "KZDKM",
|
|
||||||
"repo": "Hyprspace",
|
|
||||||
"rev": "e54884da1d6a1af76af9d053887bf3750dd554fd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "KZDKM",
|
|
||||||
"repo": "Hyprspace",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprutils": {
|
"hyprutils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -570,6 +570,57 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-formatter-pack": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nix-on-droid",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nmd": "nmd",
|
||||||
|
"nmt": "nmt"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705252799,
|
||||||
|
"narHash": "sha256-HgSTREh7VoXjGgNDwKQUYcYo13rPkltW7IitHrTPA5c=",
|
||||||
|
"owner": "Gerschtli",
|
||||||
|
"repo": "nix-formatter-pack",
|
||||||
|
"rev": "2de39dedd79aab14c01b9e2934842051a160ffa5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Gerschtli",
|
||||||
|
"repo": "nix-formatter-pack",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix-on-droid": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": [
|
||||||
|
"home-manager24"
|
||||||
|
],
|
||||||
|
"nix-formatter-pack": "nix-formatter-pack",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs24"
|
||||||
|
],
|
||||||
|
"nixpkgs-docs": "nixpkgs-docs",
|
||||||
|
"nixpkgs-for-bootstrap": "nixpkgs-for-bootstrap",
|
||||||
|
"nmd": "nmd_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1720396533,
|
||||||
|
"narHash": "sha256-UFzk/hZWO1VkciIO5UPaSpJN8s765wsngUSvtJM6d5Q=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-on-droid",
|
||||||
|
"rev": "f3d3b8294039f2f9a8fb7ea82c320f29c6b0fe25",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-24.05",
|
||||||
|
"repo": "nix-on-droid",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-wsl": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_3",
|
||||||
@@ -605,6 +656,38 @@
|
|||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-docs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705957679,
|
||||||
|
"narHash": "sha256-Q8LJaVZGJ9wo33wBafvZSzapYsjOaNjP/pOnSiKVGHY=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "9a333eaa80901efe01df07eade2c16d183761fa3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "release-23.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-for-bootstrap": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1720244366,
|
||||||
|
"narHash": "sha256-WrDV0FPMVd2Sq9hkR5LNHudS3OSMmUrs90JUTN+MXpA=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "49ee0e94463abada1de470c9c07bfc12b36dcf40",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "49ee0e94463abada1de470c9c07bfc12b36dcf40",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-latest": {
|
"nixpkgs-latest": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761810199,
|
"lastModified": 1761810199,
|
||||||
@@ -652,6 +735,22 @@
|
|||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs24": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1735563628,
|
||||||
|
"narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761114652,
|
"lastModified": 1761114652,
|
||||||
@@ -731,6 +830,60 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nmd": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1666190571,
|
||||||
|
"narHash": "sha256-Z1hc7M9X6L+H83o9vOprijpzhTfOBjd0KmUTnpHAVjA=",
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"rev": "b75d312b4f33bd3294cd8ae5c2ca8c6da2afc169",
|
||||||
|
"type": "gitlab"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"type": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nmd_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nix-on-droid",
|
||||||
|
"nixpkgs-docs"
|
||||||
|
],
|
||||||
|
"scss-reset": "scss-reset"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705050560,
|
||||||
|
"narHash": "sha256-x3zzcdvhJpodsmdjqB4t5mkVW22V3wqHLOun0KRBzUI=",
|
||||||
|
"owner": "~rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"rev": "66d9334933119c36f91a78d565c152a4fdc8d3d3",
|
||||||
|
"type": "sourcehut"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "~rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"type": "sourcehut"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nmt": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1648075362,
|
||||||
|
"narHash": "sha256-u36WgzoA84dMVsGXzml4wZ5ckGgfnvS0ryzo/3zn/Pc=",
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nmt",
|
||||||
|
"rev": "d83601002c99b78c89ea80e5e6ba21addcfe12ae",
|
||||||
|
"type": "gitlab"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nmt",
|
||||||
|
"type": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pre-commit-hooks": {
|
"pre-commit-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
@@ -785,14 +938,16 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"copyparty": "copyparty",
|
"copyparty": "copyparty",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"home-manager24": "home-manager24",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprland-plugins": "hyprland-plugins",
|
"hyprland-plugins": "hyprland-plugins",
|
||||||
"hyprspace": "hyprspace",
|
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
|
"nix-on-droid": "nix-on-droid",
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nixpkgs-latest": "nixpkgs-latest",
|
"nixpkgs-latest": "nixpkgs-latest",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"nixpkgs24": "nixpkgs24",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"yazi": "yazi"
|
"yazi": "yazi"
|
||||||
}
|
}
|
||||||
@@ -839,6 +994,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"scss-reset": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1631450058,
|
||||||
|
"narHash": "sha256-muDlZJPtXDIGevSEWkicPP0HQ6VtucbkMNygpGlBEUM=",
|
||||||
|
"owner": "andreymatin",
|
||||||
|
"repo": "scss-reset",
|
||||||
|
"rev": "0cf50e27a4e95e9bb5b1715eedf9c54dee1a5a91",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "andreymatin",
|
||||||
|
"repo": "scss-reset",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -875,21 +1046,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_2": {
|
"systems_2": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1689347949,
|
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_3": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
|||||||
84
flake.nix
84
flake.nix
@@ -2,23 +2,44 @@
|
|||||||
description = "Multisystem NixOS Flake of Lennart J. Kurzweg";
|
description = "Multisystem NixOS Flake of Lennart J. Kurzweg";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs = { url = "nixpkgs/nixos-25.05"; };
|
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||||
nixpkgs-unstable = { url = "nixpkgs/nixos-unstable"; };
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||||
nixpkgs-latest = { url = "github:nixos/nixpkgs?ref=master"; };
|
nixpkgs-latest.url = "github:nixos/nixpkgs?ref=master";
|
||||||
|
nixpkgs24.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||||
|
|
||||||
home-manager = { url = "github:nix-community/home-manager/release-25.05"; inputs.nixpkgs.follows = "nixpkgs"; };
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
home-manager24 ={
|
||||||
|
url = "github:nix-community/home-manager/release-24.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs24";
|
||||||
|
};
|
||||||
|
|
||||||
nixos-wsl = { url = "github:nix-community/NixOS-WSL/main"; };
|
nix-on-droid = {
|
||||||
|
url = "github:nix-community/nix-on-droid/release-24.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs24";
|
||||||
|
inputs.home-manager.follows = "home-manager24";
|
||||||
|
};
|
||||||
|
|
||||||
sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; };
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||||
lanzaboote = { url = "github:nix-community/lanzaboote/v0.4.2"; };
|
|
||||||
|
|
||||||
hyprland = { url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; };
|
sops-nix ={
|
||||||
hyprland-plugins = { url = "github:hyprwm/hyprland-plugins"; inputs.hyprland.follows = "hyprland"; };
|
url = "github:Mic92/sops-nix";
|
||||||
hyprspace = { url = "github:KZDKM/Hyprspace"; inputs.hyprland.follows = "hyprland"; };
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
yazi = { url = "github:sxyazi/yazi"; };
|
lanzaboote.url = "github:nix-community/lanzaboote/v0.4.2";
|
||||||
copyparty = { url = "github:9001/copyparty"; };
|
|
||||||
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
hyprland-plugins = {
|
||||||
|
url = "github:hyprwm/hyprland-plugins";
|
||||||
|
inputs.hyprland.follows = "hyprland";
|
||||||
|
};
|
||||||
|
|
||||||
|
yazi.url = "github:sxyazi/yazi";
|
||||||
|
|
||||||
|
copyparty.url = "github:9001/copyparty";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { ... }@inputs: with inputs; let
|
outputs = { ... }@inputs: with inputs; let
|
||||||
@@ -28,20 +49,19 @@
|
|||||||
config = { allowUnfreePredicate = pkg: builtins.elem (simple-pkgs.lib.getName pkg) (import ./flake-modules/allowed.nix).unfree; };
|
config = { allowUnfreePredicate = pkg: builtins.elem (simple-pkgs.lib.getName pkg) (import ./flake-modules/allowed.nix).unfree; };
|
||||||
|
|
||||||
hyper-base = rec {
|
hyper-base = rec {
|
||||||
inherit system;
|
system = "x86_64-linux";
|
||||||
user = "nx2";
|
user = "nx2";
|
||||||
domain = "nx2.site";
|
domain = "nx2.site";
|
||||||
home = "/home/${user}";
|
home = "/home/${user}";
|
||||||
webroot = "/var/lib/hugo/nx2site/public";
|
webroot = "/var/lib/hugo/nx2site/public";
|
||||||
pkgs-version = "25.05";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
my-pkgs = host: import nixpkgs {
|
get-pkgs = { host, system?system, nixpkgs?inputs.nixpkgs, version?"25.05" }: import nixpkgs {
|
||||||
inherit system config;
|
inherit system config;
|
||||||
overlays = [(final: prev: {
|
overlays = [(final: prev: {
|
||||||
unstable = import nixpkgs-unstable { inherit system config; };
|
unstable = import nixpkgs-unstable { inherit system config; };
|
||||||
latest = import nixpkgs-latest { inherit system config; };
|
latest = import nixpkgs-latest { inherit system config; };
|
||||||
version = "25.05";
|
inherit version;
|
||||||
})] ++ (if host == "NxACE" then [
|
})] ++ (if host == "NxACE" then [
|
||||||
copyparty.overlays.default
|
copyparty.overlays.default
|
||||||
] else []);
|
] else []);
|
||||||
@@ -53,17 +73,18 @@
|
|||||||
in {
|
in {
|
||||||
nixosConfigurations = let
|
nixosConfigurations = let
|
||||||
make-nixos-system = host: nvidia-settings: nixpkgs.lib.nixosSystem {
|
make-nixos-system = host: nvidia-settings: nixpkgs.lib.nixosSystem {
|
||||||
pkgs = my-pkgs host;
|
pkgs = get-pkgs { inherit host; };
|
||||||
modules = [ ./configuration.nix ];
|
modules = [ ./configuration.nix ];
|
||||||
specialArgs = let
|
specialArgs = let
|
||||||
hyper = hyper-base // { inherit host; nvidia = (nvidia-base // nvidia-settings); };
|
hyper = hyper-base // { inherit host; nvidia = (nvidia-base // nvidia-settings); };
|
||||||
in { inherit inputs hyper rice secrets; };
|
in { inherit inputs hyper rice secrets; };
|
||||||
};
|
};
|
||||||
make-nixos-wsl-system = host: nixpkgs.lib.nixosSystem {
|
make-nixos-wsl-system = host: nixpkgs.lib.nixosSystem {
|
||||||
pkgs = my-pkgs host;
|
pkgs = get-pkgs { inherit host; };
|
||||||
modules = [ ./nixos-wsl.nix ];
|
modules = [ ./wsl.nix ];
|
||||||
specialArgs = let
|
specialArgs = let
|
||||||
hyper = hyper-base // { inherit host; };
|
hyper = hyper-base // { inherit host; };
|
||||||
|
rice = import ./flake-modules/rice.nix pkgs;
|
||||||
in { inherit inputs hyper rice; };
|
in { inherit inputs hyper rice; };
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
@@ -73,16 +94,37 @@
|
|||||||
NxDCS = make-nixos-wsl-system "NxDCS";
|
NxDCS = make-nixos-wsl-system "NxDCS";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixOnDroidConfigurations = let
|
||||||
|
makeNODConfiguration = host: nix-on-droid.lib.nixOnDroidConfiguration rec {
|
||||||
|
pkgs = let
|
||||||
|
options = { inherit host; system = "aarch64-linux"; };
|
||||||
|
in (get-pkgs options) //
|
||||||
|
(get-pkgs (options // { version = "24.05"; nixpkgs = nixpkgs24; } )
|
||||||
|
);
|
||||||
|
modules = [ ./nod.nix ];
|
||||||
|
home-manager-path = home-manager24.outPath;
|
||||||
|
extraSpecialArgs = let
|
||||||
|
hyper = hyper-base // {
|
||||||
|
inherit host;
|
||||||
|
system = "aarch64-linux";
|
||||||
|
user = "nix-on-droid";
|
||||||
|
home = "/data/data/com.termux.nix/files/home";
|
||||||
|
};
|
||||||
|
rice = import ./flake-modules/rice.nix pkgs;
|
||||||
|
in { inherit inputs hyper rice; };
|
||||||
|
};
|
||||||
|
in { NxS23U = makeNODConfiguration "NxS23U"; };
|
||||||
|
|
||||||
homeConfigurations = let
|
homeConfigurations = let
|
||||||
make-home-configuration = host: user: nvidia-settings: home-manager.lib.homeManagerConfiguration {
|
make-home-configuration = host: user: nvidia-settings: home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = my-pkgs host;
|
pkgs = get-pkgs { inherit host; };
|
||||||
modules = [ ./home.nix ];
|
modules = [ ./home.nix ];
|
||||||
extraSpecialArgs = let
|
extraSpecialArgs = let
|
||||||
hyper = hyper-base // { inherit host; nvidia = nvidia-base // nvidia-settings; };
|
hyper = hyper-base // { inherit host; nvidia = nvidia-base // nvidia-settings; };
|
||||||
in { inherit inputs hyper rice secrets; };
|
in { inherit inputs hyper rice secrets; };
|
||||||
};
|
};
|
||||||
make-shell-configuration = host: user: home-manager.lib.homeManagerConfiguration {
|
make-shell-configuration = host: user: home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = my-pkgs host;
|
pkgs = get-pkgs { inherit host; };
|
||||||
modules = [ ./shell-only.nix ];
|
modules = [ ./shell-only.nix ];
|
||||||
extraSpecialArgs = let
|
extraSpecialArgs = let
|
||||||
hyper = hyper-base // { inherit host; };
|
hyper = hyper-base // { inherit host; };
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.bash = {
|
programs.bash = let
|
||||||
|
init = /* bash */ ''
|
||||||
|
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||||
|
'';
|
||||||
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ll = "ls -l";
|
ll = "ls -l";
|
||||||
@@ -15,5 +19,10 @@
|
|||||||
"checkjobs"
|
"checkjobs"
|
||||||
];
|
];
|
||||||
enableCompletion = false;
|
enableCompletion = false;
|
||||||
|
|
||||||
|
} // pkgs.lib.mkIf (pkgs.version != "24.05") {
|
||||||
|
shellInit = init;
|
||||||
|
} // pkgs.lib.mkIf (pkgs.version != "25.05") {
|
||||||
|
profileExtra = init;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{ pkgs, ... }@all: with all;
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fish
|
|
||||||
any-nix-shell
|
any-nix-shell
|
||||||
|
|
||||||
(writeShellScriptBin "nxfetch" /* bash */ ''
|
(writeShellScriptBin "nxfetch" /* bash */ ''
|
||||||
@@ -40,6 +39,7 @@
|
|||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.fish;
|
||||||
shellAliases = let
|
shellAliases = let
|
||||||
base-eza = "eza --icons --git --smart-group --group-directories-first";
|
base-eza = "eza --icons --git --smart-group --group-directories-first";
|
||||||
in {
|
in {
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
'';
|
'';
|
||||||
nx_backup = let
|
nx_backup = let
|
||||||
destination = if hyper.host == "NxNORTH" then "${hyper.home}/shared/" else "${hyper.home}/backups/";
|
destination = if hyper.host == "NxNORTH" then "${hyper.home}/shared/" else "${hyper.home}/backups/";
|
||||||
in pkgs.lib.mkIf (hyper.host != "NxACE" && hyper.host != "NxDCS") ''
|
in pkgs.lib.mkIf (hyper.host == "NxXPS" || hyper.host == "NxNORTH") ''
|
||||||
set RPATH (curl -s https://${hyper.domain}/latest-backup)
|
set RPATH (curl -s https://${hyper.domain}/latest-backup)
|
||||||
rsync -avz --info=progress2 -e "ssh -p ${builtins.toString secrets.ssh.port}" ${hyper.user}@ssh.${hyper.domain}:"$RPATH" ${destination}
|
rsync -avz --info=progress2 -e "ssh -p ${builtins.toString secrets.ssh.port}" ${hyper.user}@ssh.${hyper.domain}:"$RPATH" ${destination}
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -39,10 +39,6 @@
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
defaultCacheTtlSsh = min2sec 60;
|
defaultCacheTtlSsh = min2sec 60;
|
||||||
defaultCacheTtl = min2sec 30;
|
defaultCacheTtl = min2sec 30;
|
||||||
pinentry = {
|
|
||||||
package = pkgs.pinentry;
|
|
||||||
program = "pinentry";
|
|
||||||
};
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
allow-loopback-pinentry
|
allow-loopback-pinentry
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ in {
|
|||||||
# inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo
|
# inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo
|
||||||
# inputs.hyprfocus.packages.${pkgs.system}.hyprfocus
|
# inputs.hyprfocus.packages.${pkgs.system}.hyprfocus
|
||||||
# inputs.hycov.packages.${pkgs.system}.hycov
|
# inputs.hycov.packages.${pkgs.system}.hycov
|
||||||
pkgs.hyprlandPlugins.hyprspace
|
# pkgs.hyprlandPlugins.hyprspace
|
||||||
# inputs.hyprspace.packages.${pkgs.system}.Hyprspace
|
# inputs.hyprspace.packages.${pkgs.system}.Hyprspace
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
systemctl-tui
|
systemctl-tui
|
||||||
tldr
|
tldr
|
||||||
w3m
|
w3m
|
||||||
|
which
|
||||||
yt-dlp
|
yt-dlp
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
nxace = name: {
|
nxace = name: {
|
||||||
host = name;
|
host = name;
|
||||||
hostname = "ssh.${hyper.domain}";
|
hostname = "ssh.${hyper.domain}";
|
||||||
user = hyper.user;
|
user = "nx2";
|
||||||
port = 50022;
|
port = 50022;
|
||||||
identityFile = "${hyper.home}/vault/ssh/nxace-nx2-${hyper.host}";
|
identityFile = "${hyper.home}/vault/ssh/nxace-nx2-${hyper.host}";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,39 +1,17 @@
|
|||||||
{ pkgs, ... }@all: with all; let
|
{ pkgs, ... }@all: with all; let
|
||||||
|
nox-var = (pkgs.version != "24.05");
|
||||||
tfc = pkgs.unstable.xdg-desktop-portal-termfilechooser;
|
tfc = pkgs.unstable.xdg-desktop-portal-termfilechooser;
|
||||||
in {
|
in {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.unar
|
pkgs.unar
|
||||||
tfc
|
tfc
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = pkgs.yazi;
|
# package = pkgs.yazi;
|
||||||
package = inputs.yazi.packages.${hyper.system}.default;
|
package = inputs.yazi.packages.${hyper.system}.default;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
shellWrapperName = "ya";
|
# initLua = /* lua */ '' ''; # down
|
||||||
initLua = /* lua */ ''
|
|
||||||
require("zoxide"):setup {
|
|
||||||
update_db = true,
|
|
||||||
}
|
|
||||||
Status:children_add(function()
|
|
||||||
local h = cx.active.current.hovered
|
|
||||||
if not h or ya.target_family() ~= "unix" then
|
|
||||||
return ""
|
|
||||||
end
|
|
||||||
|
|
||||||
return ui.Line {
|
|
||||||
ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
|
|
||||||
":",
|
|
||||||
ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
|
|
||||||
" ",
|
|
||||||
}
|
|
||||||
end, 500, Status.RIGHT)
|
|
||||||
'';
|
|
||||||
plugins = with pkgs; {
|
|
||||||
inherit glow git;
|
|
||||||
};
|
|
||||||
# initLua = /* lua */ '' '';
|
|
||||||
keymap = {
|
keymap = {
|
||||||
mgr.keymap = [
|
mgr.keymap = [
|
||||||
{ on = "<Esc>"; run = "escape"; desc = "Exit visual mode, clear selected, or cancel search"; }
|
{ on = "<Esc>"; run = "escape"; desc = "Exit visual mode, clear selected, or cancel search"; }
|
||||||
@@ -403,7 +381,31 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
} // (if nox-var then {
|
||||||
|
shellWrapperName = "ya";
|
||||||
|
initLua = /* lua */ ''
|
||||||
|
require("zoxide"):setup {
|
||||||
|
update_db = true,
|
||||||
|
}
|
||||||
|
Status:children_add(function()
|
||||||
|
local h = cx.active.current.hovered
|
||||||
|
if not h or ya.target_family() ~= "unix" then
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
|
||||||
|
return ui.Line {
|
||||||
|
ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
|
||||||
|
":",
|
||||||
|
ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
|
||||||
|
" ",
|
||||||
|
}
|
||||||
|
end, 500, Status.RIGHT)
|
||||||
|
'';
|
||||||
|
plugins = with pkgs; {
|
||||||
|
inherit glow git;
|
||||||
|
};
|
||||||
|
} else {});
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
configFile."xdg-desktop-portal-termfilechooser/config" = {
|
configFile."xdg-desktop-portal-termfilechooser/config" = {
|
||||||
force = true;
|
force = true;
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
{ pkgs, ... }@all: with all;
|
|
||||||
{
|
|
||||||
# Simply install just the packages
|
|
||||||
environment.packages = with pkgs; [
|
|
||||||
helix
|
|
||||||
git
|
|
||||||
lazygit
|
|
||||||
yazi
|
|
||||||
];
|
|
||||||
|
|
||||||
# Backup etc files instead of failing to activate generation if a file already exists in /etc
|
|
||||||
environment.etcBackupExtension = ".bak";
|
|
||||||
|
|
||||||
# Read the changelog before changing this value
|
|
||||||
system.stateVersion = pkgs.version;
|
|
||||||
|
|
||||||
# Set up nix for flakes
|
|
||||||
nix.extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Set your time zone
|
|
||||||
time.timeZone = "Europe/Berlin";
|
|
||||||
}
|
|
||||||
32
nod.nix
Normal file
32
nod.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{ pkgs, ... }@all: with all; {
|
||||||
|
environment = {
|
||||||
|
packages = import ./system-modules/base-packages.nix pkgs;
|
||||||
|
etcBackupExtension = ".bak";
|
||||||
|
motd = "";
|
||||||
|
};
|
||||||
|
terminal = {
|
||||||
|
font = rice.font.code.regular-path;
|
||||||
|
};
|
||||||
|
android-integration = {
|
||||||
|
termux-setup-storage.enable = true;
|
||||||
|
};
|
||||||
|
system.stateVersion = pkgs.version;
|
||||||
|
nix.extraOptions = ''
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
'';
|
||||||
|
user ={
|
||||||
|
shell = "${pkgs.fish}/bin/fish";
|
||||||
|
# userName = pkgs.lib.mkForce hyper.user; if its read-only, whats the point of this option???
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# Set your time zone
|
||||||
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
config = import ./shell-only.nix;
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
backupFileExtension = "backup";
|
||||||
|
extraSpecialArgs = { inherit (all) inputs hyper rice; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
./home-modules/nixd.nix
|
./home-modules/nixd.nix
|
||||||
./home-modules/nxgs.nix
|
./home-modules/nxgs.nix
|
||||||
./home-modules/pandoc.nix
|
./home-modules/pandoc.nix
|
||||||
./home-modules/programming/c.nix
|
# ./home-modules/programming/c.nix
|
||||||
./home-modules/programming/gleam.nix
|
./home-modules/programming/gleam.nix
|
||||||
./home-modules/programming/go.nix
|
./home-modules/programming/go.nix
|
||||||
./home-modules/programming/java.nix
|
./home-modules/programming/java.nix
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
home = {
|
home = {
|
||||||
username = hyper.user;
|
username = hyper.user;
|
||||||
homeDirectory = hyper.home;
|
homeDirectory = hyper.home;
|
||||||
stateVersion = hyper.pkgs-version;
|
stateVersion = pkgs.version;
|
||||||
};
|
};
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
{ pkgs, ... }: {
|
pkgs: with pkgs; [
|
||||||
environment.systemPackages = with pkgs; ([
|
busybox
|
||||||
git
|
# coreutils-full
|
||||||
git-crypt
|
gitFull
|
||||||
lazygit # home-manager module is bugged
|
git-crypt
|
||||||
wget
|
|
||||||
curlHTTP3
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
p7zip
|
|
||||||
unar
|
|
||||||
vim
|
|
||||||
htop
|
|
||||||
openssl
|
|
||||||
dmidecode
|
|
||||||
file
|
|
||||||
]);
|
|
||||||
|
|
||||||
}
|
wget
|
||||||
|
curlHTTP3
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
p7zip
|
||||||
|
unar
|
||||||
|
vim
|
||||||
|
htop
|
||||||
|
openssl
|
||||||
|
dmidecode
|
||||||
|
file
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user