main-laptop: power-action is done by gnome

This commit is contained in:
makefu 2023-06-12 21:43:34 +02:00
parent 19582674ab
commit 4dd3763d03
2 changed files with 11 additions and 13 deletions

View file

@ -22,8 +22,6 @@ in {
users.users.${config.krebs.build.user.name}.extraGroups = [ "dialout" ]; users.users.${config.krebs.build.user.name}.extraGroups = [ "dialout" ];
security.sudo.extraConfig = "${config.krebs.power-action.user} ALL= (root) NOPASSWD: ${pkgs.systemd}/bin/systemctl suspend";
location.latitude = 48.7; location.latitude = 48.7;
location.longitude = 9.1; location.longitude = 9.1;

View file

@ -27,21 +27,18 @@
}; };
description = "Flakes of makefu"; description = "Flakes of makefu";
outputs = { self, nixpkgs, disko, nixos-hardware, nix-ld, sops-nix, stockholm, ...}@inputs: let outputs = { self, nixpkgs, disko, nixos-hardware, nix-ld, sops-nix, stockholm, home-manager, ...}@inputs: let
inherit (nixpkgs) lib;
in { in {
nixosModules = nixosModules =
let builtins.listToAttrs
inherit (nixpkgs) lib;
in builtins.listToAttrs
(map (map
(name: {name = lib.removeSuffix ".nix" name; value = import (./3modules + "/${name}");}) (name: {name = lib.removeSuffix ".nix" name; value = import (./3modules + "/${name}");})
(lib.filter (lib.filter
(name: name != "default.nix" && !lib.hasPrefix "." name) (name: !lib.hasPrefix "." name)
(lib.attrNames (builtins.readDir ./3modules)))); (lib.attrNames (builtins.readDir ./3modules))));
nixosConfigurations.x = nixpkgs.lib.nixosSystem rec { nixosConfigurations = lib.genAttrs ["x" "tsp" ] (host: nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
inherit (inputs) nixos-hardware self stockholm nixpkgs; inherit (inputs) nixos-hardware self stockholm nixpkgs;
@ -55,6 +52,7 @@
disko.nixosModules.disko disko.nixosModules.disko
nix-ld.nixosModules.nix-ld nix-ld.nixosModules.nix-ld
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
home-manager.nixosModules.default
stockholm.nixosModules.krebs stockholm.nixosModules.krebs
stockholm.nixosModules.hosts stockholm.nixosModules.hosts
@ -63,13 +61,15 @@
stockholm.nixosModules.dns stockholm.nixosModules.dns
stockholm.nixosModules.kartei stockholm.nixosModules.kartei
stockholm.nixosModules.sitemap stockholm.nixosModules.sitemap
stockholm.nixosModules.fetchWallpaper
stockholm.nixosModules.git
self.nixosModules.state self.nixosModules.default
#self.nixosModules.krebs #self.nixosModules.krebs
./1systems/flake-x/config.nix (./1systems + "/${host}/config.nix")
]; ];
}; });
}; };
} }