diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 19:59:03 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 19:59:03 +0200 |
commit | 7dfa2579be1344c138c1ab8fe914dc60039c2a48 (patch) | |
tree | cd95253c79c362d713fb21547171138f21c84731 | |
parent | dfbfedbcfec564d2c19ca971f1206afe0e38dfe6 (diff) | |
download | nixos-7dfa2579be1344c138c1ab8fe914dc60039c2a48.tar nixos-7dfa2579be1344c138c1ab8fe914dc60039c2a48.tar.gz nixos-7dfa2579be1344c138c1ab8fe914dc60039c2a48.tar.bz2 nixos-7dfa2579be1344c138c1ab8fe914dc60039c2a48.tar.xz nixos-7dfa2579be1344c138c1ab8fe914dc60039c2a48.zip |
feeds: install imm
-rw-r--r-- | accounts/gkleen@vidhar.nix | 6 | ||||
-rw-r--r-- | flake.lock | 75 | ||||
-rw-r--r-- | flake.nix | 10 | ||||
-rw-r--r-- | user-profiles/feeds/default.nix | 8 |
4 files changed, 97 insertions, 2 deletions
diff --git a/accounts/gkleen@vidhar.nix b/accounts/gkleen@vidhar.nix index 4b41926c..2bb4f32b 100644 --- a/accounts/gkleen@vidhar.nix +++ b/accounts/gkleen@vidhar.nix | |||
@@ -1,3 +1,7 @@ | |||
1 | { userName, ... }: { | 1 | { flake, userName, ... }: { |
2 | imports = with flake.nixosModules.userProfiles.${userName}; [ | ||
3 | feeds | ||
4 | ]; | ||
5 | |||
2 | config.users.users.${userName}.uid = 1000; | 6 | config.users.users.${userName}.uid = 1000; |
3 | } | 7 | } |
@@ -1,5 +1,38 @@ | |||
1 | { | 1 | { |
2 | "nodes": { | 2 | "nodes": { |
3 | "beam": { | ||
4 | "flake": false, | ||
5 | "locked": { | ||
6 | "lastModified": 1601074876, | ||
7 | "narHash": "sha256-8nTuBP/vD0L/qMo4h3XNrGZvpIwXuMVdj40j5gvHU6w=", | ||
8 | "owner": "haskell-beam", | ||
9 | "repo": "beam", | ||
10 | "rev": "efd464b079755a781c2bb7a2fc030d6c141bbb8a", | ||
11 | "type": "github" | ||
12 | }, | ||
13 | "original": { | ||
14 | "owner": "haskell-beam", | ||
15 | "repo": "beam", | ||
16 | "rev": "efd464b079755a781c2bb7a2fc030d6c141bbb8a", | ||
17 | "type": "github" | ||
18 | } | ||
19 | }, | ||
20 | "flake-utils": { | ||
21 | "locked": { | ||
22 | "lastModified": 1619345332, | ||
23 | "narHash": "sha256-qHnQkEp1uklKTpx3MvKtY6xzgcqXDsz5nLilbbuL+3A=", | ||
24 | "owner": "numtide", | ||
25 | "repo": "flake-utils", | ||
26 | "rev": "2ebf2558e5bf978c7fb8ea927dfaed8fefab2e28", | ||
27 | "type": "github" | ||
28 | }, | ||
29 | "original": { | ||
30 | "owner": "numtide", | ||
31 | "repo": "flake-utils", | ||
32 | "rev": "2ebf2558e5bf978c7fb8ea927dfaed8fefab2e28", | ||
33 | "type": "github" | ||
34 | } | ||
35 | }, | ||
3 | "home-manager": { | 36 | "home-manager": { |
4 | "inputs": { | 37 | "inputs": { |
5 | "nixpkgs": [ | 38 | "nixpkgs": [ |
@@ -21,6 +54,30 @@ | |||
21 | "type": "github" | 54 | "type": "github" |
22 | } | 55 | } |
23 | }, | 56 | }, |
57 | "imm": { | ||
58 | "inputs": { | ||
59 | "beam": "beam", | ||
60 | "flake-utils": "flake-utils", | ||
61 | "nixpkgs": [ | ||
62 | "nixpkgs" | ||
63 | ], | ||
64 | "rss-conduit": "rss-conduit" | ||
65 | }, | ||
66 | "locked": { | ||
67 | "lastModified": 1620393248, | ||
68 | "narHash": "sha256-PG22caLQmAGhLZP49HsazuNd8IFKKaTuhXIQBD8v4Fs=", | ||
69 | "owner": "k0ral", | ||
70 | "repo": "imm", | ||
71 | "rev": "5033879667264cb44cee65671a66f6aa43f249e7", | ||
72 | "type": "github" | ||
73 | }, | ||
74 | "original": { | ||
75 | "owner": "k0ral", | ||
76 | "ref": "master", | ||
77 | "repo": "imm", | ||
78 | "type": "github" | ||
79 | } | ||
80 | }, | ||
24 | "nixpkgs": { | 81 | "nixpkgs": { |
25 | "locked": { | 82 | "locked": { |
26 | "lastModified": 1629458213, | 83 | "lastModified": 1629458213, |
@@ -40,10 +97,28 @@ | |||
40 | "root": { | 97 | "root": { |
41 | "inputs": { | 98 | "inputs": { |
42 | "home-manager": "home-manager", | 99 | "home-manager": "home-manager", |
100 | "imm": "imm", | ||
43 | "nixpkgs": "nixpkgs", | 101 | "nixpkgs": "nixpkgs", |
44 | "sops-nix": "sops-nix" | 102 | "sops-nix": "sops-nix" |
45 | } | 103 | } |
46 | }, | 104 | }, |
105 | "rss-conduit": { | ||
106 | "flake": false, | ||
107 | "locked": { | ||
108 | "lastModified": 1606053577, | ||
109 | "narHash": "sha256-Md9YmKiDPJoV6hDbI5fBz1cSZPJoKiIC4WqyB0Y36XA=", | ||
110 | "owner": "k0ral", | ||
111 | "repo": "rss-conduit", | ||
112 | "rev": "c1fec73d715fd1c9a95a155e87ba469887b8e543", | ||
113 | "type": "github" | ||
114 | }, | ||
115 | "original": { | ||
116 | "owner": "k0ral", | ||
117 | "repo": "rss-conduit", | ||
118 | "rev": "c1fec73d715fd1c9a95a155e87ba469887b8e543", | ||
119 | "type": "github" | ||
120 | } | ||
121 | }, | ||
47 | "sops-nix": { | 122 | "sops-nix": { |
48 | "inputs": { | 123 | "inputs": { |
49 | "nixpkgs": [ | 124 | "nixpkgs": [ |
@@ -22,9 +22,17 @@ | |||
22 | ref = "master"; | 22 | ref = "master"; |
23 | inputs.nixpkgs.follows = "nixpkgs"; | 23 | inputs.nixpkgs.follows = "nixpkgs"; |
24 | }; | 24 | }; |
25 | |||
26 | imm = { | ||
27 | type = "github"; | ||
28 | owner = "k0ral"; | ||
29 | repo = "imm"; | ||
30 | ref = "master"; | ||
31 | inputs.nixpkgs.follows = "nixpkgs"; | ||
32 | }; | ||
25 | }; | 33 | }; |
26 | 34 | ||
27 | outputs = { self, nixpkgs, home-manager, sops-nix }@inputs: | 35 | outputs = { self, nixpkgs, home-manager, sops-nix, ... }@inputs: |
28 | let | 36 | let |
29 | inherit (builtins) attrNames attrValues elemAt toJSON isNull pathExists; | 37 | inherit (builtins) attrNames attrValues elemAt toJSON isNull pathExists; |
30 | inherit (nixpkgs) lib; | 38 | inherit (nixpkgs) lib; |
diff --git a/user-profiles/feeds/default.nix b/user-profiles/feeds/default.nix new file mode 100644 index 00000000..67a6d969 --- /dev/null +++ b/user-profiles/feeds/default.nix | |||
@@ -0,0 +1,8 @@ | |||
1 | { config, flakeInputs, userName, pkgs, ... }: | ||
2 | let | ||
3 | imm = flakeInputs.imm.defaultPackage.${config.nixpkgs.system}; | ||
4 | in { | ||
5 | config.home-manager.users.${userName} = { | ||
6 | home.packages = [ imm ]; | ||
7 | }; | ||
8 | } | ||