From 43a6e0ef78f7123bf4e892fdc81ff86b4f03b1b0 Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Mon, 27 Mar 2023 21:15:51 +0200 Subject: [PATCH] dregil: Update home-manager config --- .gitignore | 1 + flake.nix | 8 ++++++- hosts/dregil/configuration.nix | 10 ++++++++- outputs/homeConfigurations/default.nix | 31 ++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 outputs/homeConfigurations/default.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fcfc4a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result* diff --git a/flake.nix b/flake.nix index 798e455..6faf123 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; +# simplex-chat = { +# url = "github:simplex-chat/simplex-chat"; +# inputs.nixpkgs.follows = "nixpkgs"; +# }; + # age for nix to store encrypted passwords conveniently agenix = { url = "github:ryantm/agenix"; @@ -26,7 +31,7 @@ }; }; - outputs = { self, home-manager, nixpkgs, agenix, snm, ... }@inputs: { + outputs = { home-manager, nixpkgs, agenix, snm, ... }@inputs: { nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ @@ -50,5 +55,6 @@ }; nixosConfigurations."dregil" = import ./hosts/dregil { inherit inputs; }; + homeConfigurations = import ./outputs/homeConfigurations inputs; }; } diff --git a/hosts/dregil/configuration.nix b/hosts/dregil/configuration.nix index f037888..3974771 100644 --- a/hosts/dregil/configuration.nix +++ b/hosts/dregil/configuration.nix @@ -71,6 +71,7 @@ in fonts = { enableDefaultFonts = true; fonts = with pkgs; [ + corefonts noto-fonts noto-fonts-emoji fira-code @@ -110,7 +111,8 @@ in uhk-agent # gaming support - bottles + lutris + #inputs.simplex-chat.packages."x86_64-linux"."exe:simplex-chat" ]; }; @@ -123,6 +125,12 @@ in nvidia-offload ]; + # adjust channels to nixpkgs used on this system via this flake + environment.etc."nix/inputs/nixpkgs".source = inputs.nixpkgs-unstable.outPath; + nix.nixPath = [ + "nixpkgs=${inputs.nixpkgs-unstable}" + ]; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; diff --git a/outputs/homeConfigurations/default.nix b/outputs/homeConfigurations/default.nix new file mode 100644 index 0000000..4fe9a2a --- /dev/null +++ b/outputs/homeConfigurations/default.nix @@ -0,0 +1,31 @@ +inputs: with inputs; +let + pkgs = import nixpkgs-unstable { + system = "x86_64-linux"; + config.allowUnfree = true; + overlays = []; + }; +in +{ + "alex@dregil" = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ + { + programs.home-manager.enable = true; + + home = { + username = "alex"; + homeDirectory = "/home/alex"; + stateVersion = "22.11"; + + packages = with pkgs; [ + lutris + ]; + }; + + # do not show home-manager notifications + news.display = "silent"; + } + ]; + }; +}