nixos-config/configurations/profile/os/default.nix

62 lines
1.3 KiB
Nix
Raw Normal View History

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
];
2023-10-31 14:40:57 +01:00
/*
users.users.nixos-rebuild = {
#isSystemUser = true;
isNormalUser = true;
group = "nixos-rebuild";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPEDY+H8Hc/RSLE064AAh8IojvqxPd8BE5gec2aOfYMh materus@podkos.pl"
];
home = "/tmp/nixos-rebuild";
};
users.groups.nixos-rebuild = { };
security.sudo.extraRules = [
{
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" ];
}
];
}
];
*/
2023-10-08 11:42:08 +02:00
}
2023-10-31 14:40:57 +01:00