summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2022-12-03 14:30:48 +0100
committerMinijackson <minijackson@riseup.net>2022-12-03 14:31:34 +0100
commit85bff9044b07db5ba39d50607f272493b150641e (patch)
tree41286c86baa717fb9b8d9c2397b1135c1404b691
parentcce7854a8ba150324c0d116b3978fa7d380672fb (diff)
downloadnixos-config-reborn-85bff9044b07db5ba39d50607f272493b150641e.tar.gz
nixos-config-reborn-85bff9044b07db5ba39d50607f272493b150641e.zip
flake: 22.05 -> 22.11, use rycee-nur directly
-rw-r--r--common/default.nix3
-rw-r--r--flake.lock67
-rw-r--r--flake.nix21
-rw-r--r--usecases/desktop/graphical/firefox.nix4
4 files changed, 60 insertions, 35 deletions
diff --git a/common/default.nix b/common/default.nix
index 50ae168..108853a 100644
--- a/common/default.nix
+++ b/common/default.nix
@@ -22,8 +22,9 @@ inputs:
22 unstable = import inputs.nixpkgs-unstable { 22 unstable = import inputs.nixpkgs-unstable {
23 inherit (config.nixpkgs) system config; 23 inherit (config.nixpkgs) system config;
24 }; 24 };
25
26 inherit (import inputs.rycee-nur { pkgs = final; }) firefox-addons;
25 }) 27 })
26 inputs.nur.overlay
27 ]; 28 ];
28 29
29 nix.registry = with lib; 30 nix.registry = with lib;
diff --git a/flake.lock b/flake.lock
index 3f49835..2bb7ce5 100644
--- a/flake.lock
+++ b/flake.lock
@@ -19,19 +19,20 @@
19 "inputs": { 19 "inputs": {
20 "nixpkgs": [ 20 "nixpkgs": [
21 "nixpkgs" 21 "nixpkgs"
22 ] 22 ],
23 "utils": "utils"
23 }, 24 },
24 "locked": { 25 "locked": {
25 "lastModified": 1667907331, 26 "lastModified": 1670059602,
26 "narHash": "sha256-bHkAwkYlBjkupPUFcQjimNS8gxWSWjOTevEuwdnp5m0=", 27 "narHash": "sha256-mtgVnAjlYYjJr2wDnfz94kIefLl61Ww7cjCpLVhN/6Y=",
27 "owner": "nix-community", 28 "owner": "nix-community",
28 "repo": "home-manager", 29 "repo": "home-manager",
29 "rev": "6639e3a837fc5deb6f99554072789724997bc8e5", 30 "rev": "6b71989c0dc1c8d386086334290c094240d51798",
30 "type": "github" 31 "type": "github"
31 }, 32 },
32 "original": { 33 "original": {
33 "owner": "nix-community", 34 "owner": "nix-community",
34 "ref": "release-22.05", 35 "ref": "release-22.11",
35 "repo": "home-manager", 36 "repo": "home-manager",
36 "type": "github" 37 "type": "github"
37 } 38 }
@@ -54,16 +55,16 @@
54 }, 55 },
55 "nixpkgs": { 56 "nixpkgs": {
56 "locked": { 57 "locked": {
57 "lastModified": 1669418739, 58 "lastModified": 1669919498,
58 "narHash": "sha256-T86oFvcUIRwHWBWUt7WjaP4BP/3lDGbv5AppQSI1FkI=", 59 "narHash": "sha256-cndPLdFj2V0OchIgz1sOVKZXOi+ETgSq/OqCCbWsRoo=",
59 "owner": "NixOS", 60 "owner": "NixOS",
60 "repo": "nixpkgs", 61 "repo": "nixpkgs",
61 "rev": "695b3515251873e0a7e2021add4bba643c56cde3", 62 "rev": "14c7bd44711b04c05cb78412451005415310b6bd",
62 "type": "github" 63 "type": "github"
63 }, 64 },
64 "original": { 65 "original": {
65 "owner": "NixOS", 66 "owner": "NixOS",
66 "ref": "nixos-22.05", 67 "ref": "nixos-22.11",
67 "repo": "nixpkgs", 68 "repo": "nixpkgs",
68 "type": "github" 69 "type": "github"
69 } 70 }
@@ -84,21 +85,6 @@
84 "type": "github" 85 "type": "github"
85 } 86 }
86 }, 87 },
87 "nur": {
88 "locked": {
89 "lastModified": 1669562715,
90 "narHash": "sha256-x4SOCkMcQ19g+LVD96o/01aRBW6x0hlw0wyMJ08QTZA=",
91 "owner": "nix-community",
92 "repo": "NUR",
93 "rev": "222f7c06142a675c305f863a489fb7147c5ccae1",
94 "type": "github"
95 },
96 "original": {
97 "owner": "nix-community",
98 "repo": "NUR",
99 "type": "github"
100 }
101 },
102 "root": { 88 "root": {
103 "inputs": { 89 "inputs": {
104 "flake-utils": "flake-utils", 90 "flake-utils": "flake-utils",
@@ -106,10 +92,26 @@
106 "musnix": "musnix", 92 "musnix": "musnix",
107 "nixpkgs": "nixpkgs", 93 "nixpkgs": "nixpkgs",
108 "nixpkgs-unstable": "nixpkgs-unstable", 94 "nixpkgs-unstable": "nixpkgs-unstable",
109 "nur": "nur", 95 "rycee-nur": "rycee-nur",
110 "shmart-prompt-dir": "shmart-prompt-dir" 96 "shmart-prompt-dir": "shmart-prompt-dir"
111 } 97 }
112 }, 98 },
99 "rycee-nur": {
100 "flake": false,
101 "locked": {
102 "lastModified": 1670059673,
103 "narHash": "sha256-zHRpAOYfCOqH6s5fQL1OaM4BIWnNEaFmTX57OfvgxUc=",
104 "owner": "rycee",
105 "repo": "nur-expressions",
106 "rev": "8acf5467948e0839cf6cae58c0f1e13c748bfaf0",
107 "type": "gitlab"
108 },
109 "original": {
110 "owner": "rycee",
111 "repo": "nur-expressions",
112 "type": "gitlab"
113 }
114 },
113 "shmart-prompt-dir": { 115 "shmart-prompt-dir": {
114 "flake": false, 116 "flake": false,
115 "locked": { 117 "locked": {
@@ -125,6 +127,21 @@
125 "repo": "shmart-prompt-dir", 127 "repo": "shmart-prompt-dir",
126 "type": "github" 128 "type": "github"
127 } 129 }
130 },
131 "utils": {
132 "locked": {
133 "lastModified": 1667395993,
134 "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
135 "owner": "numtide",
136 "repo": "flake-utils",
137 "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
138 "type": "github"
139 },
140 "original": {
141 "owner": "numtide",
142 "repo": "flake-utils",
143 "type": "github"
144 }
128 } 145 }
129 }, 146 },
130 "root": "root", 147 "root": "root",
diff --git a/flake.nix b/flake.nix
index bd47154..4ca7cb2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,14 +1,17 @@
1{ 1{
2 description = "My NixOS configurations"; 2 description = "My NixOS configurations";
3 3
4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05"; 4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
5 inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; 5 inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
6 inputs.flake-utils.url = "github:numtide/flake-utils"; 6 inputs.flake-utils.url = "github:numtide/flake-utils";
7 inputs.home-manager = { 7 inputs.home-manager = {
8 url = "github:nix-community/home-manager/release-22.05"; 8 url = "github:nix-community/home-manager/release-22.11";
9 inputs.nixpkgs.follows = "nixpkgs"; 9 inputs.nixpkgs.follows = "nixpkgs";
10 }; 10 };
11 inputs.nur.url = "github:nix-community/NUR"; 11 inputs.rycee-nur = {
12 url = "gitlab:rycee/nur-expressions";
13 flake = false;
14 };
12 inputs.musnix = { 15 inputs.musnix = {
13 url = "github:musnix/musnix"; 16 url = "github:musnix/musnix";
14 flake = false; 17 flake = false;
@@ -33,8 +36,8 @@
33 test = { config, ... }: { 36 test = { config, ... }: {
34 imports = [ self.nixosModules.default ]; 37 imports = [ self.nixosModules.default ];
35 38
36 home-manager.users.minijackson.home.stateVersion = "21.05"; 39 home-manager.users.minijackson.home.stateVersion = "22.11";
37 home-manager.users.root.home.stateVersion = "21.05"; 40 home-manager.users.root.home.stateVersion = "22.11";
38 41
39 users.users.minijackson.initialHashedPassword = ""; 42 users.users.minijackson.initialHashedPassword = "";
40 users.users.root.initialHashedPassword = ""; 43 users.users.root.initialHashedPassword = "";
@@ -141,6 +144,7 @@
141 { 144 {
142 145
143 tests.testDefault = nixosTest { 146 tests.testDefault = nixosTest {
147 name = "default";
144 nodes.machine = self.nixosModules.test; 148 nodes.machine = self.nixosModules.test;
145 testScript = '' 149 testScript = ''
146 # TODO 150 # TODO
@@ -149,6 +153,7 @@
149 }; 153 };
150 154
151 tests.testPlainDesktop = nixosTest { 155 tests.testPlainDesktop = nixosTest {
156 name = "plainDesktop";
152 nodes.machine = { ... }: { 157 nodes.machine = { ... }: {
153 imports = [ 158 imports = [
154 self.nixosModules.test 159 self.nixosModules.test
@@ -163,6 +168,7 @@
163 }; 168 };
164 169
165 tests.testFullDesktop = nixosTest { 170 tests.testFullDesktop = nixosTest {
171 name = "fullDesktop";
166 nodes.machine = { ... }: { 172 nodes.machine = { ... }: {
167 imports = [ 173 imports = [
168 self.nixosModules.test 174 self.nixosModules.test
@@ -187,6 +193,7 @@
187 }; 193 };
188 194
189 tests.testServer = nixosTest { 195 tests.testServer = nixosTest {
196 name = "server";
190 nodes.machine = { ... }: { 197 nodes.machine = { ... }: {
191 imports = [ 198 imports = [
192 self.nixosModules.test 199 self.nixosModules.test
@@ -251,8 +258,8 @@
251 isoImage.makeEfiBootable = true; 258 isoImage.makeEfiBootable = true;
252 isoImage.makeUsbBootable = true; 259 isoImage.makeUsbBootable = true;
253 260
254 home-manager.users.minijackson.home.stateVersion = "21.05"; 261 home-manager.users.minijackson.home.stateVersion = "22.11";
255 home-manager.users.root.home.stateVersion = "21.05"; 262 home-manager.users.root.home.stateVersion = "22.11";
256 263
257 users.users.minijackson.initialHashedPassword = ""; 264 users.users.minijackson.initialHashedPassword = "";
258 users.users.root.initialHashedPassword = ""; 265 users.users.root.initialHashedPassword = "";
diff --git a/usecases/desktop/graphical/firefox.nix b/usecases/desktop/graphical/firefox.nix
index 8496ba3..bc3c507 100644
--- a/usecases/desktop/graphical/firefox.nix
+++ b/usecases/desktop/graphical/firefox.nix
@@ -11,7 +11,7 @@ inputs:
11 { 11 {
12 programs.firefox = { 12 programs.firefox = {
13 enable = true; 13 enable = true;
14 package = pkgs.firefox-wayland.override { 14 package = pkgs.firefox.override {
15 cfg.enableBrowserpass = true; 15 cfg.enableBrowserpass = true;
16 extraPolicies = { 16 extraPolicies = {
17 DisableAppUpdate = true; 17 DisableAppUpdate = true;
@@ -29,7 +29,7 @@ inputs:
29 }; 29 };
30 }; 30 };
31 31
32 extensions = with pkgs.nur.repos.rycee.firefox-addons; [ 32 extensions = with pkgs.firefox-addons; [
33 # Security 33 # Security
34 https-everywhere 34 https-everywhere
35 browserpass 35 browserpass