diff --git a/flake.lock b/flake.lock index 5eda5b7..42a4f2f 100644 --- a/flake.lock +++ b/flake.lock @@ -1,24 +1,5 @@ { "nodes": { - "asahi": { - "inputs": { - "flake-compat": "flake-compat", - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1780669925, - "narHash": "sha256-inOQx/s7GQjh9bcCjCHXAeX0EHX+sOQUBoo8+bs48ME=", - "owner": "nix-community", - "repo": "nixos-apple-silicon", - "rev": "5880026520a3fd248d59e1c81c4e4e111aefc6af", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nixos-apple-silicon", - "type": "github" - } - }, "base16": { "inputs": { "fromYaml": "fromYaml" @@ -41,9 +22,9 @@ "inputs": { "cachyos-kernel": "cachyos-kernel_2", "cachyos-kernel-patches": "cachyos-kernel-patches", - "flake-compat": "flake-compat_2", + "flake-compat": "flake-compat", "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs" }, "locked": { "lastModified": 1776386586, @@ -94,7 +75,7 @@ }, "catppuccin": { "inputs": { - "nixpkgs": "nixpkgs_3" + "nixpkgs": "nixpkgs_2" }, "locked": { "lastModified": 1776420287, @@ -111,21 +92,6 @@ } }, "flake-compat": { - "locked": { - "lastModified": 1761640442, - "narHash": "sha256-AtrEP6Jmdvrqiv4x2xa5mrtaIp3OEe8uBYCDZDS+hu8=", - "owner": "nix-community", - "repo": "flake-compat", - "rev": "4a56054d8ffc173222d09dad23adf4ba946c8884", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "flake-compat", - "type": "github" - } - }, - "flake-compat_2": { "flake": false, "locked": { "lastModified": 1767039857, @@ -141,6 +107,21 @@ "type": "github" } }, + "flake-compat_2": { + "locked": { + "lastModified": 1761640442, + "narHash": "sha256-AtrEP6Jmdvrqiv4x2xa5mrtaIp3OEe8uBYCDZDS+hu8=", + "owner": "nix-community", + "repo": "flake-compat", + "rev": "4a56054d8ffc173222d09dad23adf4ba946c8884", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "flake-compat", + "type": "github" + } + }, "flake-compat_3": { "flake": false, "locked": { @@ -363,7 +344,7 @@ "inputs": { "niri-stable": "niri-stable", "niri-unstable": "niri-unstable", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_3", "nixpkgs-stable": "nixpkgs-stable", "xwayland-satellite-stable": "xwayland-satellite-stable", "xwayland-satellite-unstable": "xwayland-satellite-unstable" @@ -438,7 +419,7 @@ }, "nix-vscode-extensions": { "inputs": { - "nixpkgs": "nixpkgs_5" + "nixpkgs": "nixpkgs_4" }, "locked": { "lastModified": 1777951761, @@ -454,18 +435,37 @@ "type": "github" } }, + "nixos-apple-silicon": { + "inputs": { + "flake-compat": "flake-compat_2", + "nixpkgs": "nixpkgs_5" + }, + "locked": { + "lastModified": 1781108254, + "narHash": "sha256-acCLKPvXbyLVd8Vui/6GuQp2JQ409riBOe00nr/qe+w=", + "owner": "nix-community", + "repo": "nixos-apple-silicon", + "rev": "53ae7e036433331013bd7c03ae927da554482816", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixos-apple-silicon", + "type": "github" + } + }, "nixpkgs": { "locked": { - "lastModified": 1779560665, - "narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=", + "lastModified": 1776311487, + "narHash": "sha256-9U8bL9X/0R9cZD3Uc/mN37AWvv5dB4WQqqjLRAxQfas=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786", + "rev": "cc1e0e027707ad53dddae39d3b3e992262c7d8c7", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-unstable", + "ref": "nixos-unstable-small", "repo": "nixpkgs", "type": "github" } @@ -503,16 +503,16 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1776311487, - "narHash": "sha256-9U8bL9X/0R9cZD3Uc/mN37AWvv5dB4WQqqjLRAxQfas=", + "lastModified": 1776169885, + "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "cc1e0e027707ad53dddae39d3b3e992262c7d8c7", + "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-unstable-small", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } @@ -534,22 +534,6 @@ } }, "nixpkgs_4": { - "locked": { - "lastModified": 1776169885, - "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_5": { "locked": { "lastModified": 1777207419, "narHash": "sha256-V3bmPWAajDiC+1ClDOp55gianW2EyRJSJOyu1RUQibc=", @@ -565,6 +549,22 @@ "type": "github" } }, + "nixpkgs_5": { + "locked": { + "lastModified": 1780243769, + "narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "331800de5053fcebacf6813adb5db9c9dca22a0c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_6": { "locked": { "lastModified": 1776169885, @@ -599,7 +599,6 @@ }, "root": { "inputs": { - "asahi": "asahi", "base16": "base16", "cachyos-kernel": "cachyos-kernel", "catppuccin": "catppuccin", @@ -609,6 +608,7 @@ "niri": "niri", "nix-index-database": "nix-index-database", "nix-vscode-extensions": "nix-vscode-extensions", + "nixos-apple-silicon": "nixos-apple-silicon", "nixpkgs": "nixpkgs_6", "systems": "systems_2", "tt-schemes": "tt-schemes", diff --git a/flake.nix b/flake.nix index 8ac182a..357eca8 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ nix-index-database.url = "github:nix-community/nix-index-database"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; - asahi.url = "github:nix-community/nixos-apple-silicon"; + nixos-apple-silicon.url = "github:nix-community/nixos-apple-silicon"; cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; diff --git a/hosts/flubber-machine/default.nix b/hosts/flubber-machine/default.nix index 79dbab2..0c770df 100755 --- a/hosts/flubber-machine/default.nix +++ b/hosts/flubber-machine/default.nix @@ -70,6 +70,7 @@ dunst.enable = true; rofi.enable = true; waybar.enable = true; + poweralertd.enable = true; wob.enable = true; gammastep.enable = true; wl-clip-persist.enable = true; diff --git a/hosts/goopnet-interface/default.nix b/hosts/goopnet-interface/default.nix index cd55728..01c6c83 100755 --- a/hosts/goopnet-interface/default.nix +++ b/hosts/goopnet-interface/default.nix @@ -62,7 +62,7 @@ dunst.enable = true; rofi.enable = true; waybar.enable = true; - batsignal.enable = true; + poweralertd.enable = true; wob.enable = true; gammastep.enable = true; wl-clip-persist.enable = true; @@ -73,7 +73,7 @@ regreet.enable = true; # theme, see `modules/desktop/themes` - themes.active = "catppuccin"; + themes.active = "gruvbox"; # monitors, see `modules/desktop/monitors` monitors.enable = true; @@ -92,6 +92,7 @@ system.loupe.enable = true; system.ananicy.enable = true; system.kdeconnect.enable = true; + system.virt-manager.enable = true; # editors editors.micro.enable = true; editors.vscode.enable = true; diff --git a/hosts/goopnet-interface/hardware.nix b/hosts/goopnet-interface/hardware.nix index 20fa995..b43e7df 100755 --- a/hosts/goopnet-interface/hardware.nix +++ b/hosts/goopnet-interface/hardware.nix @@ -3,7 +3,7 @@ { imports = [ - inputs.asahi.nixosModules.apple-silicon-support + inputs.nixos-apple-silicon.nixosModules.apple-silicon-support inputs.hardware.nixosModules.common-pc-laptop-ssd inputs.hardware.nixosModules.common-pc-laptop diff --git a/modules/core/default.nix b/modules/core/default.nix index a2beae0..5d56e5f 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -13,6 +13,7 @@ in { # services that help w/ battery saving powerManagement.powertop.enable = true; services.power-profiles-daemon.enable = true; + services.upower.enable = true; }) ]; } diff --git a/modules/desktop/batsignal.nix b/modules/desktop/batsignal.nix deleted file mode 100644 index 2ed6d78..0000000 --- a/modules/desktop/batsignal.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ lib, config, pkgs, ... }: - -with lib; -let - cfg = config.modules.desktop.batsignal; -in { - options.modules.desktop.batsignal = { - enable = mkEnableOption "Enable batsignal, a battery notification service"; - }; - - config = mkIf cfg.enable { - hm.services.batsignal = { - enable = true; - - extraArgs = [ - # -w 20 -c 10 -d 5 -- set battery levels - # -p -- notify on plug/unplug - # -m 2 -- set interval to 2 seconds - "-w 20" "-c 10" "-d 5" "-p" "-m 2" - ]; - }; - }; -} diff --git a/modules/desktop/poweralertd.nix b/modules/desktop/poweralertd.nix new file mode 100644 index 0000000..d4c5ee2 --- /dev/null +++ b/modules/desktop/poweralertd.nix @@ -0,0 +1,15 @@ +{ lib, config, pkgs, ... }: + +with lib; +let + cfg = config.modules.desktop.poweralertd; +in { + options.modules.desktop.poweralertd = { + enable = mkEnableOption "Enable poweralertd, a battery notification service"; + }; + + config = mkIf cfg.enable { + services.upower.enable = true; + hm.services.poweralertd.enable = true; + }; +}