2023-10-08 11:42:08 +02:00
|
|
|
{ config, pkgs, ... }:
|
2023-10-31 14:40:57 +01:00
|
|
|
{
|
2023-10-08 11:42:08 +02:00
|
|
|
imports = [
|
|
|
|
./nix.nix
|
|
|
|
./fonts.nix
|
2023-10-31 14:40:57 +01:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
./games
|
|
|
|
];
|
2024-03-11 16:19:31 +01:00
|
|
|
/*
|
|
|
|
users.users.nixos-rebuild = {
|
2023-10-31 14:40:57 +01:00
|
|
|
#isSystemUser = true;
|
|
|
|
isNormalUser = true;
|
|
|
|
group = "nixos-rebuild";
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPEDY+H8Hc/RSLE064AAh8IojvqxPd8BE5gec2aOfYMh materus@podkos.pl"
|
|
|
|
];
|
|
|
|
home = "/tmp/nixos-rebuild";
|
2024-03-11 16:19:31 +01:00
|
|
|
};
|
|
|
|
users.groups.nixos-rebuild = { };
|
|
|
|
security.sudo.extraRules = [
|
2023-10-31 14:40:57 +01:00
|
|
|
{
|
|
|
|
users = [ "nixos-rebuild" ];
|
|
|
|
commands = let path = "/run/current-system/sw/bin/"; in
|
|
|
|
[
|
|
|
|
{
|
|
|
|
command =
|
|
|
|
"${path}nixos-rebuild";
|
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command =
|
|
|
|
"${path}nix-store";
|
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command =
|
|
|
|
"${path}nix-env";
|
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command =
|
|
|
|
"${path}nix-build";
|
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command =
|
|
|
|
"${path}nix-instantiate";
|
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command =
|
|
|
|
"${path}nix-channel";
|
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2024-03-11 16:19:31 +01:00
|
|
|
];
|
2023-10-31 14:40:57 +01:00
|
|
|
*/
|
2023-10-08 11:42:08 +02:00
|
|
|
}
|
2023-10-31 14:40:57 +01:00
|
|
|
|