hosts and modules restructuring

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-12-06 19:30:28 +05:30
parent d654ab9463
commit 42843126e3
19 changed files with 137 additions and 100 deletions

0
hosts/marisa/boot.nix Executable file → Normal file
View File

1
hosts/marisa/default.nix Executable file → Normal file
View File

@@ -6,6 +6,7 @@
./hardware.nix
./boot.nix
./services.nix
./stuff.nix
];
system.stateVersion = "21.05";
}

0
hosts/marisa/hardware.nix Executable file → Normal file
View File

0
hosts/marisa/networking.nix Executable file → Normal file
View File

0
hosts/marisa/services.nix Executable file → Normal file
View File

32
hosts/marisa/stuff.nix Normal file
View File

@@ -0,0 +1,32 @@
{ config, pkgs, ... }:
{
time.timeZone = "Asia/Kolkata";
security = {
sudo.enable = false;
doas = {
enable = true;
extraRules = [
{
users = [ ];
keepEnv = true;
persist = true;
}
];
};
};
programs = {
gnupg = {
agent = {
enable = true;
pinentryFlavor = "curses";
};
};
};
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
settings.trusted-users = [ "root" ];
};
}

0
hosts/remilia/boot.nix Executable file → Normal file
View File

1
hosts/remilia/default.nix Executable file → Normal file
View File

@@ -7,6 +7,7 @@
./boot.nix
./services.nix
./mailserver.nix
./stuff.nix
];
system.stateVersion = "21.11";

0
hosts/remilia/networking.nix Executable file → Normal file
View File

0
hosts/remilia/services.nix Executable file → Normal file
View File

32
hosts/remilia/stuff.nix Normal file
View File

@@ -0,0 +1,32 @@
{ config, pkgs, ... }:
{
time.timeZone = "Asia/Kolkata";
security = {
sudo.enable = false;
doas = {
enable = true;
extraRules = [
{
users = [ ];
keepEnv = true;
persist = true;
}
];
};
};
programs = {
gnupg = {
agent = {
enable = true;
pinentryFlavor = "curses";
};
};
};
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
settings.trusted-users = [ "root" ];
};
}

View File

@@ -6,6 +6,7 @@
experimental-features = nix-command flakes
'';
settings = {
auto-optimise-store = true;
trusted-users = [ "root" "natto" ];
substituters = [
"https://nix-gaming.cachix.org"

View File

@@ -38,6 +38,7 @@
};
fonts.fonts = with pkgs; [
fira-mono
fira-code
lohit-fonts.devanagari
lohit-fonts.gurmukhi
nerdfonts