Update to nixos 22.11
This commit is contained in:
parent
f0be8cc8d8
commit
858c7a1655
14 changed files with 78 additions and 49 deletions
|
@ -52,7 +52,7 @@ in {
|
||||||
|
|
||||||
# Package management
|
# Package management
|
||||||
nix = {
|
nix = {
|
||||||
trustedUsers = [ "root" "@wheel" ];
|
settings.trusted-users = [ "root" "@wheel" ];
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
boot.kernelParams = [ "acpi_enforce_resources=lax" ];
|
boot.kernelParams = [ "acpi_enforce_resources=lax" ];
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
nix.maxJobs = lib.mkDefault 24;
|
nix.settings.max-jobs = lib.mkDefault 24;
|
||||||
|
|
||||||
powerManagement.powerUpCommands = let
|
powerManagement.powerUpCommands = let
|
||||||
forceThunderboltOnScript =
|
forceThunderboltOnScript =
|
||||||
|
|
|
@ -24,5 +24,5 @@
|
||||||
|
|
||||||
# CPU Configuration
|
# CPU Configuration
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
nix.maxJobs = lib.mkDefault 4;
|
nix.settings.max-jobs = lib.mkDefault 4;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
boot.initrd.kernelModules =
|
boot.initrd.kernelModules =
|
||||||
[ "dm-snapshot" ]; # TODO: This should be moved to defaults
|
[ "dm-snapshot" ]; # TODO: This should be moved to defaults
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ modemmanager libmbim ];
|
environment.systemPackages = with pkgs; [ modemmanager libmbim ];
|
||||||
|
|
||||||
|
|
||||||
environment.etc."ModemManager/fcc-unlock.d/1eac:1001" = {
|
environment.etc."ModemManager/fcc-unlock.d/1eac:1001" = {
|
||||||
source = "${pkgFccUnlock}/bin/fcc-unlock";
|
source = "${pkgFccUnlock}/bin/fcc-unlock";
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7f194f75d8951b0ecc175077565cf9dd3bd96116
|
Subproject commit 24ad2174f1e551e18303151f6e73e45ddcaf9699
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2ec601e9851c67913af403162c5346de3702eace
|
Subproject commit 18db2b965924207f14d3e5da2512f95f1464cf03
|
90
flake.lock
generated
90
flake.lock
generated
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665140084,
|
"lastModified": 1670075202,
|
||||||
"narHash": "sha256-3rDi3/DemRvOzsdracVIiDumg7gq5BkzusNyaJdEA68=",
|
"narHash": "sha256-LX//k01Y+eyDeBtlgWUwEDUn0eoNst6+rmiXP8x9Q/U=",
|
||||||
"ref": "HEAD",
|
"ref": "main",
|
||||||
"rev": "2ec601e9851c67913af403162c5346de3702eace",
|
"rev": "18db2b965924207f14d3e5da2512f95f1464cf03",
|
||||||
"revCount": 2,
|
"revCount": 3,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///etc/nixos/fcc-unlock"
|
"url": "file:///etc/nixos/fcc-unlock"
|
||||||
},
|
},
|
||||||
|
@ -24,30 +24,31 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs-stable"
|
"nixpkgs-stable"
|
||||||
]
|
],
|
||||||
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667907331,
|
"lastModified": 1670156115,
|
||||||
"narHash": "sha256-bHkAwkYlBjkupPUFcQjimNS8gxWSWjOTevEuwdnp5m0=",
|
"narHash": "sha256-L2FKLedprp3AkQ+GS+2Br7CYWeCmLCjt3zUd87p0lNQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6639e3a837fc5deb6f99554072789724997bc8e5",
|
"rev": "e704ef9ec7a8ccf8711bb11ff68da06f1917a26d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-22.05",
|
"ref": "release-22.11",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669650994,
|
"lastModified": 1670174919,
|
||||||
"narHash": "sha256-uwASLUfedIQ5q01TtMwZDEV2HCZr5nVPZjzVgCG+D5I=",
|
"narHash": "sha256-XdQr3BUnrvVLRFunLWrZORhwYHDG0+9jUUe0Jv1pths=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "7883883d135ce5b7eae5dce4bfa12262b85c1c46",
|
"rev": "9d87bc030a0bf3f00e953dbf095a7d8e852dab6b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -56,13 +57,13 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-nixos-2205": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669546925,
|
"lastModified": 1668543224,
|
||||||
"narHash": "sha256-Gvtk9agz88tBgqmCdHl5U7gYttTkiuEd8/Rq1Im0pTg=",
|
"narHash": "sha256-wKeb21iBIV7ggdWGcs0y0kXWCJrNfQjpl5k6Q3rikXA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fecf05d4861f3985e8dee73f08bc82668ef75125",
|
"rev": "814f8f3363cecee7cce314286846e4da5e92d689",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -72,13 +73,29 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669542132,
|
"lastModified": 1670104339,
|
||||||
"narHash": "sha256-DRlg++NJAwPh8io3ExBJdNW7Djs3plVI5jgYQ+iXAZQ=",
|
"narHash": "sha256-212aAMSy5uxzrUbHmvUm3oHh8c02wXJ7lyNjDa5NSAM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a115bb9bd56831941be3776c8a94005867f316a7",
|
"rev": "2d10e73416ec1449ef74aeac7faf2cf8c556ff5a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-22.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1670064435,
|
||||||
|
"narHash": "sha256-+ELoY30UN+Pl3Yn7RWRPabykwebsVK/kYE9JsIsUMxQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "61a8a98e6d557e6dd7ed0cdb54c3a3e3bbc5e25c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -90,9 +107,7 @@
|
||||||
},
|
},
|
||||||
"qois-infrastructure": {
|
"qois-infrastructure": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-nixos-2205": [
|
"nixpkgs-nixos-2205": "nixpkgs-nixos-2205",
|
||||||
"nixpkgs-stable"
|
|
||||||
],
|
|
||||||
"nixpkgs-nixos-unstable": [
|
"nixpkgs-nixos-unstable": [
|
||||||
"nixpkgs-unstable"
|
"nixpkgs-unstable"
|
||||||
]
|
]
|
||||||
|
@ -100,7 +115,7 @@
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1668780698,
|
"lastModified": 1668780698,
|
||||||
"narHash": "sha256-XcvgI08rrzA71tXj3JK0ZvEofzLLb2DlQVuVjAtS4Kw=",
|
"narHash": "sha256-XcvgI08rrzA71tXj3JK0ZvEofzLLb2DlQVuVjAtS4Kw=",
|
||||||
"ref": "HEAD",
|
"ref": "master",
|
||||||
"rev": "fe42502147059db67e6b26b9df6da1ae19caf6b0",
|
"rev": "fe42502147059db67e6b26b9df6da1ae19caf6b0",
|
||||||
"revCount": 241,
|
"revCount": 241,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -129,11 +144,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1669125114,
|
"lastModified": 1670078090,
|
||||||
"narHash": "sha256-mtQlFmH8DCecV3esl9eGGSfccbUssLCsiImwq9tB/8c=",
|
"narHash": "sha256-GK0qqyDv5O8FkKczhWUpUvhUSk01e/gomhLpv79DLA0=",
|
||||||
"ref": "HEAD",
|
"ref": "main",
|
||||||
"rev": "f17b13539cebd5ac3e2b86e1b3a4b06dba87afb6",
|
"rev": "24ad2174f1e551e18303151f6e73e45ddcaf9699",
|
||||||
"revCount": 39,
|
"revCount": 40,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///etc/nixos/defaults/threema"
|
"url": "file:///etc/nixos/defaults/threema"
|
||||||
},
|
},
|
||||||
|
@ -141,6 +156,21 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///etc/nixos/defaults/threema"
|
"url": "file:///etc/nixos/defaults/threema"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1667395993,
|
||||||
|
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -2,17 +2,17 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
# Upstream deps
|
# Upstream deps
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-22.05";
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
home-manager.url = "github:nix-community/home-manager/release-22.05";
|
home-manager.url = "github:nix-community/home-manager/release-22.11";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs-stable";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
|
|
||||||
# Private Deps
|
# Private Deps
|
||||||
qois-infrastructure = {
|
qois-infrastructure = {
|
||||||
url = "git+file:///etc/nixos/qois-infrastructure";
|
url = "git+file:///etc/nixos/qois-infrastructure";
|
||||||
inputs.nixpkgs-nixos-2205.follows = "nixpkgs-stable";
|
inputs.nixpkgs-nixos-2211.follows = "nixpkgs-stable";
|
||||||
inputs.nixpkgs-nixos-unstable.follows = "nixpkgs-unstable";
|
inputs.nixpkgs-nixos-unstable.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
threema.url = "git+file:///etc/nixos/defaults/threema";
|
threema.url = "git+file:///etc/nixos/defaults/threema";
|
||||||
|
@ -74,10 +74,10 @@
|
||||||
in pkgsUnstable.lib.genAttrs hosts mapHostnameToAttr;
|
in pkgsUnstable.lib.genAttrs hosts mapHostnameToAttr;
|
||||||
|
|
||||||
# Nix development shell
|
# Nix development shell
|
||||||
devShell.${system} = import ./shell.nix { pkgs = pkgsUnstable; };
|
devShells.${system}.default = import ./shell.nix { pkgs = pkgsUnstable; };
|
||||||
|
|
||||||
# Run checks and build all hosts as default package
|
# Run checks and build all hosts as default package
|
||||||
defaultPackage.${system} = with pkgsUnstable.lib;
|
packages.${system}.default = with pkgsUnstable.lib;
|
||||||
let
|
let
|
||||||
checks = attrValues self.checks.${system};
|
checks = attrValues self.checks.${system};
|
||||||
nixosConfigs = mapAttrsToList (n: v: v.config.system.build.toplevel)
|
nixosConfigs = mapAttrsToList (n: v: v.config.system.build.toplevel)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox-wayland;
|
package = pkgs.firefox;
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
MOZ_ENABLE_WAYLAND = "true";
|
MOZ_ENABLE_WAYLAND = "true";
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
];
|
];
|
||||||
backlight.format = " {percent}%";
|
backlight.format = " {percent}%";
|
||||||
disk.format = " {percentage_used}%";
|
disk.format = " {percentage_used}%";
|
||||||
clock.format = "{:%Y-%2m-%2d %H:%M}";
|
clock.format = "{:%Y-%m-%d %H:%M}";
|
||||||
"sway/workspaces" = {
|
"sway/workspaces" = {
|
||||||
disable-scroll-wraparound = true;
|
disable-scroll-wraparound = true;
|
||||||
enable-bar-scroll = true;
|
enable-bar-scroll = true;
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
"" # Icon: temperature-full
|
"" # Icon: temperature-full
|
||||||
];
|
];
|
||||||
tooltip = "true";
|
tooltip = "true";
|
||||||
hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
|
hwmon-path = "/sys/class/hwmon/hwmon3/temp1_input";
|
||||||
};
|
};
|
||||||
|
|
||||||
idle_inhibitor = {
|
idle_inhibitor = {
|
||||||
|
|
|
@ -44,6 +44,6 @@
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.05"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,5 +35,5 @@
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.05"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,6 @@
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.05"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,6 @@
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.05"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue