From c61d4e89bd384fcf741384e06cc370caf312488f Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 6 Mar 2024 10:23:41 +0100 Subject: [PATCH] First working version of home-manager alone Useful for my work laptop by now --- flake.nix | 14 +++++++---- home-manager/default.nix | 1 - hosts/yorick-Latitude-7320/home-config.nix | 28 ++++++++++++++++++++++ 3 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 hosts/yorick-Latitude-7320/home-config.nix diff --git a/flake.nix b/flake.nix index 716a179..88bb12b 100644 --- a/flake.nix +++ b/flake.nix @@ -72,11 +72,7 @@ in { system = "x86_64-linux"; specialArgs = { inherit stateVersion inputs; - hostname = "luci"; - username = "ephase"; - hostConfig = { - desktop = true; - }; + }; modules = [ ./nixos/default.nix @@ -95,6 +91,14 @@ in { hostname = "rick"; username = "ephase"; }; + }; + work = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.x86_64-linux; + extraSpecialArgs = { + inherit stateVersion inputs; + hostname = "yorick-Latitude-7320"; + username = "yorick"; + }; modules = [ ./home-manager/default.nix ]; diff --git a/home-manager/default.nix b/home-manager/default.nix index d3b9cbc..50f33fa 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -15,5 +15,4 @@ ]++ lib.optional ( builtins.pathExists ../hosts/${hostname}/includes/home-manager.nix ) ../hosts/${hostname}/includes/home-manager.nix; - } diff --git a/hosts/yorick-Latitude-7320/home-config.nix b/hosts/yorick-Latitude-7320/home-config.nix new file mode 100644 index 0000000..79a156b --- /dev/null +++ b/hosts/yorick-Latitude-7320/home-config.nix @@ -0,0 +1,28 @@ +{ ... }: { + config.modules = { + application = { + zathura.enable = true; + }; + cli = { + neovim.enable = true; + vifm.enable = true; + zsh.enable = true; + }; + video = { + kdenlive.enable = false; + mpv.enable = false; + }; + web.firefox.enable = false; + web.qutebrowser.enable = false; + web.webcord.enable = false; + gaming.lutris.enable = false; + desktop.sway = { + enable = false; + kanshi = false; + waybar = { + laptop = false; + gpuThermal.enable = false; + }; + }; + }; +}