From 7dfa2579be1344c138c1ab8fe914dc60039c2a48 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 4 Sep 2021 19:59:03 +0200 Subject: feeds: install imm --- accounts/gkleen@vidhar.nix | 6 +++- flake.lock | 75 +++++++++++++++++++++++++++++++++++++++++ flake.nix | 10 +++++- user-profiles/feeds/default.nix | 8 +++++ 4 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 user-profiles/feeds/default.nix 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 @@ -{ userName, ... }: { +{ flake, userName, ... }: { + imports = with flake.nixosModules.userProfiles.${userName}; [ + feeds + ]; + config.users.users.${userName}.uid = 1000; } diff --git a/flake.lock b/flake.lock index c13ae8c1..0c335787 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,38 @@ { "nodes": { + "beam": { + "flake": false, + "locked": { + "lastModified": 1601074876, + "narHash": "sha256-8nTuBP/vD0L/qMo4h3XNrGZvpIwXuMVdj40j5gvHU6w=", + "owner": "haskell-beam", + "repo": "beam", + "rev": "efd464b079755a781c2bb7a2fc030d6c141bbb8a", + "type": "github" + }, + "original": { + "owner": "haskell-beam", + "repo": "beam", + "rev": "efd464b079755a781c2bb7a2fc030d6c141bbb8a", + "type": "github" + } + }, + "flake-utils": { + "locked": { + "lastModified": 1619345332, + "narHash": "sha256-qHnQkEp1uklKTpx3MvKtY6xzgcqXDsz5nLilbbuL+3A=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "2ebf2558e5bf978c7fb8ea927dfaed8fefab2e28", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "rev": "2ebf2558e5bf978c7fb8ea927dfaed8fefab2e28", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -21,6 +54,30 @@ "type": "github" } }, + "imm": { + "inputs": { + "beam": "beam", + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ], + "rss-conduit": "rss-conduit" + }, + "locked": { + "lastModified": 1620393248, + "narHash": "sha256-PG22caLQmAGhLZP49HsazuNd8IFKKaTuhXIQBD8v4Fs=", + "owner": "k0ral", + "repo": "imm", + "rev": "5033879667264cb44cee65671a66f6aa43f249e7", + "type": "github" + }, + "original": { + "owner": "k0ral", + "ref": "master", + "repo": "imm", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1629458213, @@ -40,10 +97,28 @@ "root": { "inputs": { "home-manager": "home-manager", + "imm": "imm", "nixpkgs": "nixpkgs", "sops-nix": "sops-nix" } }, + "rss-conduit": { + "flake": false, + "locked": { + "lastModified": 1606053577, + "narHash": "sha256-Md9YmKiDPJoV6hDbI5fBz1cSZPJoKiIC4WqyB0Y36XA=", + "owner": "k0ral", + "repo": "rss-conduit", + "rev": "c1fec73d715fd1c9a95a155e87ba469887b8e543", + "type": "github" + }, + "original": { + "owner": "k0ral", + "repo": "rss-conduit", + "rev": "c1fec73d715fd1c9a95a155e87ba469887b8e543", + "type": "github" + } + }, "sops-nix": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index d8684703..6d4f4217 100644 --- a/flake.nix +++ b/flake.nix @@ -22,9 +22,17 @@ ref = "master"; inputs.nixpkgs.follows = "nixpkgs"; }; + + imm = { + type = "github"; + owner = "k0ral"; + repo = "imm"; + ref = "master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { self, nixpkgs, home-manager, sops-nix }@inputs: + outputs = { self, nixpkgs, home-manager, sops-nix, ... }@inputs: let inherit (builtins) attrNames attrValues elemAt toJSON isNull pathExists; 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 @@ +{ config, flakeInputs, userName, pkgs, ... }: +let + imm = flakeInputs.imm.defaultPackage.${config.nixpkgs.system}; +in { + config.home-manager.users.${userName} = { + home.packages = [ imm ]; + }; +} -- cgit v1.2.3