From b1ee621d91342a87df296e5de014dfadc342fa87 Mon Sep 17 00:00:00 2001 From: Ivan Kirilov Dimitrov Date: Sat, 6 Jul 2024 22:58:14 +0200 Subject: [PATCH] nonya business --- Makefile | 5 ++++- nixos/configs/default.nix | 39 ++++++++++++++++++++++----------------- nixos/modules/default.nix | 14 ++++++++++++++ 3 files changed, 40 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index e9bc762..193a3f6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: default all home nixos update clean +.PHONY: default all home nixos update clean music nonya default: all @@ -26,3 +26,6 @@ news: music: doas nixos-rebuild switch --flake ./#music + +nonya: + doas nixos-rebuild switch --flake ./#nonya diff --git a/nixos/configs/default.nix b/nixos/configs/default.nix index e6b1ca5..074f142 100644 --- a/nixos/configs/default.nix +++ b/nixos/configs/default.nix @@ -24,25 +24,30 @@ let hardware.cpu.intel.updateMicrocode = lib.mkForce false; }; }; - minimal = [ hardwareConfigurations.nova inputs.hosts.nixosModule ] ++ (with nixosModules; [ grub base sound wayland security ivand wireless wireguard ]); + essential = [ hardwareConfigurations.nova inputs.hosts.nixosModule ] ++ (with nixosModules; [ grub base sound wayland security ivand wireless wireguard ]); in { flake.nixosConfigurations = { - nixos = withSystem system (ctx@{ config, inputs', ... }: - inputs.nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs inputs'; - packages = config.packages; - }; - modules = minimal; - }); - music = withSystem system (ctx@{ config, inputs', ... }: - inputs.nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs inputs'; - packages = config.packages; - }; - modules = minimal ++ [ inputs.musnix.nixosModules.musnix ] ++ (with nixosModules; [ music ]); - }); + nixos = withSystem system (ctx@{ config, inputs', ... }: inputs.nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs inputs'; + packages = config.packages; + }; + modules = essential; + }); + music = withSystem system (ctx@{ config, inputs', ... }: inputs.nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs inputs'; + packages = config.packages; + }; + modules = essential ++ [ inputs.musnix.nixosModules.musnix ] ++ (with nixosModules; [ music ]); + }); + nonya = withSystem system (ctx@{ config, inputs', ... }: inputs.nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs inputs'; + packages = config.packages; + }; + modules = essential ++ [ nixosModules.nonya ]; + }); }; } diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix index 70e4596..d107a0b 100644 --- a/nixos/modules/default.nix +++ b/nixos/modules/default.nix @@ -269,5 +269,19 @@ top@{ moduleWithSystem, ... }: { ollama.enable = true; }; }); + nonya = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }: { + environment.systemPackages = with pkgs; [ + tor-browser + electrum + monero-cli + ]; + services.monero = { + enable = true; + mining = { + enable = true; + address = "48e9t9xvq4M4HBWomz6whiY624YRCPwgJ7LPXngcc8pUHk6hCuR3k6ENpLGDAhPEHWaju8Z4btxkbENpcwaqWcBvLxyh5cn"; + }; + }; + }); }; }