mirror of
https://github.com/materusPL/nixos-config
synced 2026-07-02 12:46:42 +00:00
configurations: update
This commit is contained in:
@@ -1,9 +1,62 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
{
|
||||
imports = [
|
||||
./nix.nix
|
||||
./fonts.nix
|
||||
|
||||
|
||||
./games
|
||||
];
|
||||
/*
|
||||
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" ];
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
];
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user