overlays refactor
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
{ pkgs, hyper, inputs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.nixpkgs.nixosModules.readOnlyPkgs
|
|
||||||
|
|
||||||
./system-modules/adb.nix
|
./system-modules/adb.nix
|
||||||
./system-modules/auto-mount.nix
|
./system-modules/auto-mount.nix
|
||||||
@@ -119,8 +118,6 @@
|
|||||||
dmidecode
|
dmidecode
|
||||||
file
|
file
|
||||||
parallel
|
parallel
|
||||||
# ]) ++ (with pkgs-unstable; [
|
|
||||||
# # sendme
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
@@ -140,7 +137,7 @@
|
|||||||
|
|
||||||
system.stateVersion = pkgs.version;
|
system.stateVersion = pkgs.version;
|
||||||
|
|
||||||
nixpkgs.pkgs = pkgs;
|
# nixpkgs.pkgs = pkgs;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
173
flake.lock
generated
173
flake.lock
generated
@@ -200,27 +200,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nix-on-droid",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709445365,
|
|
||||||
"narHash": "sha256-DVv6nd9FQBbMWbOmhq0KVqmlc3y3FMSYl49UXmMcO+0=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "4de84265d7ec7634a69ba75028696d74de9a44a7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprcursor": {
|
"hyprcursor": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprlang": [
|
"hyprlang": [
|
||||||
@@ -557,55 +536,6 @@
|
|||||||
"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-manager_2",
|
|
||||||
"nix-formatter-pack": "nix-formatter-pack",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"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",
|
||||||
@@ -642,38 +572,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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": 1750014763,
|
"lastModified": 1750014763,
|
||||||
@@ -784,60 +682,6 @@
|
|||||||
"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",
|
||||||
@@ -895,7 +739,6 @@
|
|||||||
"hyprland-plugins": "hyprland-plugins",
|
"hyprland-plugins": "hyprland-plugins",
|
||||||
"hyprspace": "hyprspace",
|
"hyprspace": "hyprspace",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
"nix-on-droid": "nix-on-droid",
|
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixpkgs-latest": "nixpkgs-latest",
|
"nixpkgs-latest": "nixpkgs-latest",
|
||||||
@@ -946,22 +789,6 @@
|
|||||||
"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": [
|
||||||
|
|||||||
22
flake.nix
22
flake.nix
@@ -31,13 +31,19 @@
|
|||||||
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";
|
||||||
};
|
};
|
||||||
|
|
||||||
pkgs = (import nixpkgs { inherit system config; }) // {
|
pkgs = builtins.removeAttrs (import nixpkgs {
|
||||||
unstable = import nixpkgs-unstable { inherit system config; };
|
inherit system config;
|
||||||
latest = import nixpkgs-latest { inherit system config; };
|
overlays = [
|
||||||
version = "25.05";
|
(final: prev: {
|
||||||
};
|
unstable = import nixpkgs-unstable { inherit system config; };
|
||||||
|
latest = import nixpkgs-latest { inherit system config; };
|
||||||
|
version = "25.05";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}) [ "hyper" "host" ]; # this removes the programs from pkgs so I can use the variable name
|
||||||
|
|
||||||
nvidia-base = import ./flake-modules/nvidia.nix;
|
nvidia-base = import ./flake-modules/nvidia.nix;
|
||||||
secrets = import ./git-crypt/secrets.nix;
|
secrets = import ./git-crypt/secrets.nix;
|
||||||
@@ -45,16 +51,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 {
|
||||||
|
inherit pkgs;
|
||||||
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 pkgs 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 {
|
||||||
|
inherit pkgs;
|
||||||
modules = [ ./nixos-wsl.nix ];
|
modules = [ ./nixos-wsl.nix ];
|
||||||
specialArgs = let
|
specialArgs = let
|
||||||
hyper = hyper-base // { inherit host; };
|
hyper = hyper-base // { inherit host; };
|
||||||
in { inherit pkgs inputs hyper rice; };
|
in { inherit inputs hyper rice; };
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
NxXPS = make-nixos-system "NxXPS" { enable = true; prime = true; };
|
NxXPS = make-nixos-system "NxXPS" { enable = true; prime = true; };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
bitwarden
|
bitwarden
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, user, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = let
|
home.packages = let
|
||||||
u = pkgs.writers.writePython3Bin "nx_fix_campuszeit_python" {
|
u = pkgs.writers.writePython3Bin "nx_fix_campuszeit_python" {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, secrets, ... }: let
|
{ pkgs, ... }@all: with all; let
|
||||||
calendars = with hyper; [
|
calendars = with hyper; [
|
||||||
{
|
{
|
||||||
name = "Preservation";
|
name = "Preservation";
|
||||||
@@ -85,7 +85,7 @@ in {
|
|||||||
userName = hyper.user; # my globally set username
|
userName = hyper.user; # my globally set username
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in pkgs.lib.attrsets.mergeAttrsList (
|
in lib.attrsets.mergeAttrsList (
|
||||||
map (calendar: {
|
map (calendar: {
|
||||||
"${calendar.name}" = transform_caledar_set ( default_set // calendar );
|
"${calendar.name}" = transform_caledar_set ( default_set // calendar );
|
||||||
}) calendars
|
}) calendars
|
||||||
@@ -93,7 +93,7 @@ in {
|
|||||||
|
|
||||||
programs.thunderbird.settings = let
|
programs.thunderbird.settings = let
|
||||||
to_safe_name = name: (builtins.replaceStrings ["."] ["-"]) name;
|
to_safe_name = name: (builtins.replaceStrings ["."] ["-"]) name;
|
||||||
in (pkgs.lib.attrsets.mergeAttrsList (
|
in (lib.attrsets.mergeAttrsList (
|
||||||
map (calendar: with ( default_set // calendar ); {
|
map (calendar: with ( default_set // calendar ); {
|
||||||
"calendar.registry.${to_safe_name calendar.name}.cache.enabled" = true;
|
"calendar.registry.${to_safe_name calendar.name}.cache.enabled" = true;
|
||||||
"calendar.registry.${to_safe_name calendar.name}.calendar-main-default" = primary;
|
"calendar.registry.${to_safe_name calendar.name}.calendar-main-default" = primary;
|
||||||
@@ -106,7 +106,7 @@ in {
|
|||||||
"calendar.registry.${to_safe_name calendar.name}.readOnly" = read-only;
|
"calendar.registry.${to_safe_name calendar.name}.readOnly" = read-only;
|
||||||
}) calendars
|
}) calendars
|
||||||
) // {
|
) // {
|
||||||
"calendar.list.sortOrder" = pkgs.lib.fold (calendar: acc: calendar.name + " " + acc) "" calendars;
|
"calendar.list.sortOrder" = lib.fold (calendar: acc: calendar.name + " " + acc) "" calendars;
|
||||||
"calendar.week.start" = 1;
|
"calendar.week.start" = 1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, rice, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let
|
let
|
||||||
channels = [
|
channels = [
|
||||||
"Caedrel"
|
"Caedrel"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
services.clipman = {
|
services.clipman = {
|
||||||
package = pkgs.clipman;
|
package = pkgs.clipman;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{ pkgs, hyper, rice, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
thunderbird
|
thunderbird
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.thunderbird = let
|
programs.thunderbird = let
|
||||||
inherit (pkgs.lib.generators) toJSON;
|
inherit (lib.generators) toJSON;
|
||||||
extensions = toJSON {} {
|
extensions = toJSON {} {
|
||||||
"addon@darkreader.org" = "71d6c69d-55f9-4c56-888c-abdcf6efd73d";
|
"addon@darkreader.org" = "71d6c69d-55f9-4c56-888c-abdcf6efd73d";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
# browser.tabs.allow_transparent_browser
|
# browser.tabs.allow_transparent_browser
|
||||||
# https://www.reddit.com/r/FirefoxCSS/comments/1dqws4b/firefox_128_will_allow_the_main_browser_content/
|
# https://www.reddit.com/r/FirefoxCSS/comments/1dqws4b/firefox_128_will_allow_the_main_browser_content/
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fish
|
fish
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host == "NxNORTH")
|
lib.mkIf (hyper.host == "NxNORTH")
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = (with pkgs.unstable; [
|
packages = (with pkgs.unstable; [
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host == "NxXPS")
|
lib.mkIf (hyper.host == "NxXPS")
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
libinput-gestures
|
libinput-gestures
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
programs.ghostty = {
|
programs.ghostty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# (gimp-with-plugins.override {
|
# (gimp-with-plugins.override {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
delta
|
delta
|
||||||
@@ -21,10 +21,10 @@
|
|||||||
};
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
credential = {
|
credential = {
|
||||||
"https://git.da.dicos.de".username = pkgs.lib.mkIf (hyper.host =="NxWSL") "lkurzweg";
|
"https://git.da.dicos.de".username = lib.mkIf (hyper.host =="NxWSL") "lkurzweg";
|
||||||
"https://git.da.dicos.de".password = pkgs.lib.mkIf (hyper.host =="NxWSL") "Test";
|
"https://git.da.dicos.de".password = lib.mkIf (hyper.host =="NxWSL") "Test";
|
||||||
};
|
};
|
||||||
url."ssh://git@git.da.dicos.de/".insteadOf = pkgs.lib.mkIf (hyper.host =="NxWSL") "https://git.da.dicos.de/";
|
url."ssh://git@git.da.dicos.de/".insteadOf = lib.mkIf (hyper.host =="NxWSL") "https://git.da.dicos.de/";
|
||||||
pull.rebase = false; # true
|
pull.rebase = false; # true
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
# there also is a system module
|
# there also is a system module
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let
|
let
|
||||||
# theme-name = "Colloid-Pink-Dark-Compact";
|
# theme-name = "Colloid-Pink-Dark-Compact";
|
||||||
# theme-package = pkgs.colloid-gtk-theme.override {
|
# theme-package = pkgs.colloid-gtk-theme.override {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
command = "nixd";
|
command = "nixd";
|
||||||
};
|
};
|
||||||
"style-check" = {
|
"style-check" = {
|
||||||
command = pkgs.lib.getExe pkgs.vale-ls;
|
command = lib.getExe pkgs.vale-ls;
|
||||||
};
|
};
|
||||||
"language-tool" = {
|
"language-tool" = {
|
||||||
command = "${pkgs.ltex-ls}/bin/ltex-ls";
|
command = "${pkgs.ltex-ls}/bin/ltex-ls";
|
||||||
@@ -287,7 +287,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
"llm" = {
|
"llm" = {
|
||||||
command = pkgs.lib.getExe pkgs.helix-gpt;
|
command = lib.getExe pkgs.helix-gpt;
|
||||||
args = [
|
args = [
|
||||||
"--handler"
|
"--handler"
|
||||||
"ollama"
|
"ollama"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [ hyprland-autoname-workspaces ];
|
packages = with pkgs; [ hyprland-autoname-workspaces ];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, inputs, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let
|
let
|
||||||
animation-speed = "5";
|
animation-speed = "5";
|
||||||
transparency = builtins.toString rice.transparency;
|
transparency = builtins.toString rice.transparency;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
texlab # LSP
|
texlab # LSP
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [ libnotify ];
|
home.packages = with pkgs; [ libnotify ];
|
||||||
services.mako = with rice; {
|
services.mako = with rice; {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# cinny-desktop
|
# cinny-desktop
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nixd
|
nixd
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.nvidia.enable == true)
|
lib.mkIf (hyper.nvidia.enable == true)
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, secrets, ... }: let
|
{ pkgs, ... }@all: with all;
|
||||||
sep = " ";
|
sep = " ";
|
||||||
in {
|
in {
|
||||||
home = {
|
home = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.writeShellApplication {
|
(pkgs.writeShellApplication {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(writeShellApplication {
|
(writeShellApplication {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
ghostscript
|
ghostscript
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
# home.packages = with pkgs; [
|
# home.packages = with pkgs; [
|
||||||
# obs-studio
|
# obs-studio
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
ollama
|
ollama
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pandoc
|
pandoc
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
bat
|
bat
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.remmina
|
pkgs.remmina
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
erlang
|
erlang
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nodejs
|
nodejs
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = let
|
home = let
|
||||||
python-with-packages = pkgs.python3.withPackages (pp: with pp; [
|
python-with-packages = pkgs.python3.withPackages (pp: with pp; [
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ pkgs, rice, ... }: {
|
{ pkgs, ... }@all: with all;
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
rofi-wayland
|
rofi-wayland
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
xsane
|
xsane
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let
|
let
|
||||||
my-sent = pkgs.sent.override {
|
my-sent = pkgs.sent.override {
|
||||||
patches = [
|
patches = [
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{ pkgs, hyper, inputs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
];
|
];
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = pkgs.lib.mkIf (hyper.host == "NxACE") "${hyper.home}.age_nx2_key_13.txt";
|
age.keyFile = lib.mkIf (hyper.host == "NxACE") "${hyper.home}.age_nx2_key_13.txt";
|
||||||
gnupg.home = pkgs.lib.mkIf (hyper.host != "NxACE") "${hyper.home}.gnupg";
|
gnupg.home = lib.mkIf (hyper.host != "NxACE") "${hyper.home}.gnupg";
|
||||||
defaultSopsFile = ../sops-secrets.yaml;
|
defaultSopsFile = ../sops-secrets.yaml;
|
||||||
|
|
||||||
# %r is $XDG_RUNTIME_DIR
|
# %r is $XDG_RUNTIME_DIR
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [ sshfs ];
|
packages = with pkgs; [ sshfs ];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
settings = with rice.color; {
|
settings = with rice.color; {
|
||||||
add_newline = false;
|
add_newline = false;
|
||||||
format = pkgs.lib.strings.concatMapStrings (x: "$" + x) [
|
format = lib.strings.concatMapStrings (x: "$" + x) [
|
||||||
"jobs"
|
"jobs"
|
||||||
"battery"
|
"battery"
|
||||||
"username"
|
"username"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(writeShellApplication {
|
(writeShellApplication {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }: let
|
{ pkgs, ... }@all: with all; let
|
||||||
vws = pkgs.vale.withStyles (s: [ s.alex s.google ]);
|
vws = pkgs.vale.withStyles (s: [ s.alex s.google ]);
|
||||||
in {
|
in {
|
||||||
home = {
|
home = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host == "NxNORTH")
|
lib.mkIf (hyper.host == "NxNORTH")
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
virt-manager
|
virt-manager
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ config, pkgs, hyper, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
config = pkgs.lib.mkIf (hyper.host != "NxACE") {
|
config = lib.mkIf (hyper.host != "NxACE") {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.vscodium
|
pkgs.vscodium
|
||||||
pkgs.nixpkgs-fmt
|
pkgs.nixpkgs-fmt
|
||||||
@@ -92,13 +92,13 @@
|
|||||||
# url = "https://gist.githubusercontent.com/piousdeer/b29c272eaeba398b864da6abf6cb5daa/raw/41e569ba110eb6ebbb463a6b1f5d9fe4f9e82375/mutability.nix";
|
# url = "https://gist.githubusercontent.com/piousdeer/b29c272eaeba398b864da6abf6cb5daa/raw/41e569ba110eb6ebbb463a6b1f5d9fe4f9e82375/mutability.nix";
|
||||||
# sha256 = "4b5ca670c1ac865927e98ac5bf5c131eca46cc20abf0bd0612db955bfc979de8";
|
# sha256 = "4b5ca670c1ac865927e98ac5bf5c131eca46cc20abf0bd0612db955bfc979de8";
|
||||||
# })
|
# })
|
||||||
# { inherit config pkgs; lib = pkgs.lib; })
|
# { inherit config pkgs; lib = lib; })
|
||||||
|
|
||||||
# (import
|
# (import
|
||||||
# (builtins.fetchurl {
|
# (builtins.fetchurl {
|
||||||
# url = "https://gist.githubusercontent.com/piousdeer/b29c272eaeba398b864da6abf6cb5daa/raw/41e569ba110eb6ebbb463a6b1f5d9fe4f9e82375/vscode.nix";
|
# url = "https://gist.githubusercontent.com/piousdeer/b29c272eaeba398b864da6abf6cb5daa/raw/41e569ba110eb6ebbb463a6b1f5d9fe4f9e82375/vscode.nix";
|
||||||
# sha256 = "fed877fa1eefd94bc4806641cea87138df78a47af89c7818ac5e76ebacbd025f";
|
# sha256 = "fed877fa1eefd94bc4806641cea87138df78a47af89c7818ac5e76ebacbd025f";
|
||||||
# })
|
# })
|
||||||
# { inherit config pkgs; lib = pkgs.lib; })
|
# { inherit config pkgs; lib = lib; })
|
||||||
# ] else [];
|
# ] else [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(writers.writePython3Bin "change_colors_json" {
|
(writers.writePython3Bin "change_colors_json" {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let
|
let
|
||||||
sep = " ";
|
sep = " ";
|
||||||
in {
|
in {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, rice,... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [ wlogout ];
|
packages = with pkgs; [ wlogout ];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, rice, inputs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
unar
|
unar
|
||||||
|
|||||||
4
home.nix
4
home.nix
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules/auto-mount.nix
|
./home-modules/auto-mount.nix
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
home.username = hyper.user;
|
home.username = hyper.user;
|
||||||
# home.homeDirectory = hyper.home; # for some reason you cant use hyper.home here
|
# home.homeDirectory = hyper.home; # for some reason you cant use hyper.home here
|
||||||
home.homeDirectory = "/home/${hyper.user}";
|
home.homeDirectory = "/home/${hyper.user}";
|
||||||
home.stateVersion = pkgs.version;
|
home.stateVersion = hyper.pkgs-version;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
bat
|
bat
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
# Simply install just the packages
|
# Simply install just the packages
|
||||||
environment.packages = with pkgs; [
|
environment.packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, inputs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixos-wsl.nixosModules.default
|
inputs.nixos-wsl.nixosModules.default
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules/bash.nix
|
./home-modules/bash.nix
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, lib, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, inputs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let
|
let
|
||||||
grub-theme-ascii-diana = (pkgs.fetchFromGitea {
|
grub-theme-ascii-diana = (pkgs.fetchFromGitea {
|
||||||
domain = "git.${hyper.domain}";
|
domain = "git.${hyper.domain}";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
systemd.timers."nx_cal_dicos" = {
|
systemd.timers."nx_cal_dicos" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
systemd.timers."nx_cal_lec" = {
|
systemd.timers."nx_cal_lec" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
systemd.timers."nx_cal_lr" = {
|
systemd.timers."nx_cal_lr" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let
|
let
|
||||||
radicale-root = "/var/lib/radicale";
|
radicale-root = "/var/lib/radicale";
|
||||||
web-root = "/var/nginx/webroot";
|
web-root = "/var/nginx/webroot";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
# i18n.inputMethod = {
|
# i18n.inputMethod = {
|
||||||
# type = "fcitx5";
|
# type = "fcitx5";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, rice, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
noto-fonts
|
noto-fonts
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ...}:
|
{ pkgs, ... }@all: with all;
|
||||||
|
|
||||||
{
|
{
|
||||||
environment = {
|
environment = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host == "NxNORTH" || hyper.host == "NxACE")
|
lib.mkIf (hyper.host == "NxNORTH" || hyper.host == "NxACE")
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
steam = {
|
steam = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gnupg
|
gnupg
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, modulesPath, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
@@ -29,19 +29,19 @@
|
|||||||
{ device = "/dev/disk/by-label/swap"; }
|
{ device = "/dev/disk/by-label/swap"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.useDHCP = pkgs.lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = pkgs.lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
# from nixos-hardware
|
# from nixos-hardware
|
||||||
services.thermald.enable = pkgs.lib.mkDefault true;
|
services.thermald.enable = lib.mkDefault true;
|
||||||
boot.extraModprobeConfig = if hyper.host == "NxXPS" then ''
|
boot.extraModprobeConfig = if hyper.host == "NxXPS" then ''
|
||||||
options iwlwifi 11n_disable=8
|
options iwlwifi 11n_disable=8
|
||||||
'' else "";
|
'' else "";
|
||||||
boot.initrd.kernelModules = if hyper.host == "NxXPS" then [ "i915" ] else [];
|
boot.initrd.kernelModules = if hyper.host == "NxXPS" then [ "i915" ] else [];
|
||||||
|
|
||||||
environment.variables = if hyper.host == "NxXPS" then {
|
environment.variables = if hyper.host == "NxXPS" then {
|
||||||
VDPAU_DRIVER = pkgs.lib.mkIf config.hardware.graphics.enable (pkgs.lib.mkDefault "va_gl");
|
VDPAU_DRIVER = lib.mkIf config.hardware.graphics.enable (lib.mkDefault "va_gl");
|
||||||
} else {};
|
} else {};
|
||||||
|
|
||||||
hardware.graphics.extraPackages = if hyper.host == "NxXPS" then with pkgs; [
|
hardware.graphics.extraPackages = if hyper.host == "NxXPS" then with pkgs; [
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf (hyper.host != "NxACE")
|
lib.mkIf (hyper.host != "NxACE")
|
||||||
{
|
{
|
||||||
systemd.timers."health_reminder" = {
|
systemd.timers."health_reminder" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, host, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
strongswanNM
|
strongswanNM
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let p = pkgs; in
|
let p = pkgs; in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with p; [
|
environment.systemPackages = with p; [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
services.kanata = {
|
services.kanata = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, host, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
lib.mkIf (host == "NxACE")
|
lib.mkIf (host == "NxACE")
|
||||||
{}
|
{}
|
||||||
# {
|
# {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
# sops.secrets = {
|
# sops.secrets = {
|
||||||
# "wireless-networking.env" = {};
|
# "wireless-networking.env" = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ config, pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
pkgs.lib.mkIf hyper.nvidia.enable
|
lib.mkIf hyper.nvidia.enable
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
lshw
|
lshw
|
||||||
@@ -21,7 +21,7 @@ pkgs.lib.mkIf hyper.nvidia.enable
|
|||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
nvidia = {
|
||||||
prime = pkgs.lib.mkIf hyper.nvidia.prime {
|
prime = lib.mkIf hyper.nvidia.prime {
|
||||||
intelBusId = "PCI:0:2:0";
|
intelBusId = "PCI:0:2:0";
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
offload = {
|
offload = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let dns-user = "cloudflare"; in
|
let dns-user = "cloudflare"; in
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
audiobookshelf = {
|
audiobookshelf = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
# "nx2site/namecheap.pw" = { };
|
# "nx2site/namecheap.pw" = { };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let git-user = "git"; in
|
let git-user = "git"; in
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
open-web-calendar = {
|
open-web-calendar = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
let paperless-user = "paperless"; in
|
let paperless-user = "paperless"; in
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
# appendConfig = '''';
|
# appendConfig = '''';
|
||||||
clientMaxBodySize = "20m";
|
clientMaxBodySize = "20m";
|
||||||
defaultHTTPListenPort = 80;
|
defaultHTTPListenPort = 80;
|
||||||
defaultListenAddresses = [ "0.0.0.0" ] ++ pkgs.lib.optional config.networking.enableIPv6 "[::0]";
|
defaultListenAddresses = [ "0.0.0.0" ] ++ lib.optional config.networking.enableIPv6 "[::0]";
|
||||||
defaultListen = dl;
|
defaultListen = dl;
|
||||||
defaultMimeTypes = "${pkgs.mailcap}/etc/nginx/mime.types";
|
defaultMimeTypes = "${pkgs.mailcap}/etc/nginx/mime.types";
|
||||||
defaultSSLListenPort = 443;
|
defaultSSLListenPort = 443;
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
listen = dl;
|
listen = dl;
|
||||||
locations = { "/" = { proxyPass = "http://127.0.0.1:8441"; }; };
|
locations = { "/" = { proxyPass = "http://127.0.0.1:8441"; }; };
|
||||||
};
|
};
|
||||||
"dav.${hyper.domain}" = pkgs.lib.mkIf config.services.radicale.enable (vh // {
|
"dav.${hyper.domain}" = lib.mkIf config.services.radicale.enable (vh // {
|
||||||
listen = dl;
|
listen = dl;
|
||||||
locations = { "/" = { proxyPass = "http://127.0.0.1:5232"; }; };
|
locations = { "/" = { proxyPass = "http://127.0.0.1:5232"; }; };
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.mkYarnPackage {
|
(pkgs.mkYarnPackage {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, hyper, secrets, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"nx2site/vaultwarden.env" = {
|
"nx2site/vaultwarden.env" = {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{ pkgs, hyper, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
package = if hyper.nvidia.enable then pkgs.ollama-cuda else pkgs.ollama;
|
package = if hyper.nvidia.enable then pkgs.ollama-cuda else pkgs.ollama;
|
||||||
enable = true;
|
enable = true;
|
||||||
acceleration = pkgs.lib.mkIf hyper.nvidia.enable "cuda";
|
acceleration = lib.mkIf hyper.nvidia.enable "cuda";
|
||||||
host = if hyper.host == "NxACE" then "0.0.0.0" else "127.0.0.1";
|
host = if hyper.host == "NxACE" then "0.0.0.0" else "127.0.0.1";
|
||||||
port = 11434;
|
port = 11434;
|
||||||
environmentVariables = {
|
environmentVariables = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
postgresql = {
|
postgresql = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
hardware.keyboard.qmk.enable = true;
|
hardware.keyboard.qmk.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
hardware.sane = {
|
hardware.sane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
services.avahi = {
|
services.avahi.nssmdns4 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns = true;
|
nssmdns = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
age
|
age
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
|
|
||||||
{
|
{
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }@all: with all;
|
||||||
{
|
{
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
"ssl/certs/tuda-eduroam-root.crt".source = "${pkgs.cacert.unbundled}/etc/ssl/certs/T-TeleSec_GlobalRoot_Class_2:1.crt";
|
"ssl/certs/tuda-eduroam-root.crt".source = "${pkgs.cacert.unbundled}/etc/ssl/certs/T-TeleSec_GlobalRoot_Class_2:1.crt";
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user