From 311e314ca74b2c31b7c66870642edef3e3e8d065 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 9 Nov 2023 00:00:18 +0800 Subject: [PATCH] home,nixos,presets: add desktop/torrenting --- flake.nix | 30 ++++++++++--------- .../nixos/presets/desktop/torrenting.nix | 3 ++ 2 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix diff --git a/flake.nix b/flake.nix index 686ece0..af70319 100755 --- a/flake.nix +++ b/flake.nix @@ -189,7 +189,10 @@ time.timeZone = "Asia/Shanghai"; # Timezone ### Home-Manager - home-manager.users.guanranwang = import ./users/guanranwang/home-manager/nixos/presets/desktop/gaming.nix; + home-manager.users.guanranwang.imports = [ + ./users/guanranwang/home-manager/nixos/presets/desktop/gaming.nix + ./users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix + ]; ### Options myFlake.nixos.networking.dns = "alidns"; @@ -198,7 +201,7 @@ }; }; - ### nix-darwin (macOS) + ### nix-darwin darwinConfigurations = { "iMac-macOS" = nix-darwin.lib.darwinSystem { system = "x86_64-darwin"; @@ -219,17 +222,16 @@ }; }; - ### Home-Manager - # TODO: Actually figure out how this works - homeConfigurations = { - "guanranwang@81fw-nixos" = home-manager.lib.homeManagerConfiguration { - pkgs = nixpkgs.legacyPackages.x86_64-linux; - extraSpecialArgs = {inherit inputs;}; - modules = [ - sops-nix.homeManagerModules.sops - hyprland.homeManagerModules.default - ]; - }; - }; + ### Standalone Home-Manager + #homeConfigurations = { + # "guanranwang@81fw-nixos" = home-manager.lib.homeManagerConfiguration { + # pkgs = nixpkgs.legacyPackages.x86_64-linux; + # extraSpecialArgs = {inherit inputs;}; + # modules = [ + # sops-nix.homeManagerModules.sops + # hyprland.homeManagerModules.default + # ]; + # }; + #}; }; } diff --git a/users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix b/users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix new file mode 100644 index 0000000..f7e342a --- /dev/null +++ b/users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix @@ -0,0 +1,3 @@ +{pkgs, ...}: { + home.packages = with pkgs; [qbittorrent]; +}