hosts and modules restructuring
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		
							
								
								
									
										0
									
								
								hosts/marisa/boot.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								hosts/marisa/boot.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										1
									
								
								hosts/marisa/default.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										1
									
								
								hosts/marisa/default.nix
									
									
									
									
									
										
										
										Executable file → Normal 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
									
								
							
							
						
						
									
										0
									
								
								hosts/marisa/hardware.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										0
									
								
								hosts/marisa/networking.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								hosts/marisa/networking.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										0
									
								
								hosts/marisa/services.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								hosts/marisa/services.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										32
									
								
								hosts/marisa/stuff.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								hosts/marisa/stuff.nix
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										0
									
								
								hosts/remilia/boot.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										1
									
								
								hosts/remilia/default.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										1
									
								
								hosts/remilia/default.nix
									
									
									
									
									
										
										
										Executable file → Normal 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
									
								
							
							
						
						
									
										0
									
								
								hosts/remilia/networking.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										0
									
								
								hosts/remilia/services.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								hosts/remilia/services.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										32
									
								
								hosts/remilia/stuff.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								hosts/remilia/stuff.nix
									
									
									
									
									
										Normal 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" ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -6,6 +6,7 @@
 | 
			
		||||
      experimental-features = nix-command flakes
 | 
			
		||||
    '';
 | 
			
		||||
    settings = {
 | 
			
		||||
      auto-optimise-store = true;
 | 
			
		||||
      trusted-users = [ "root" "natto" ];
 | 
			
		||||
      substituters = [
 | 
			
		||||
        "https://nix-gaming.cachix.org"
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@
 | 
			
		||||
  };
 | 
			
		||||
  fonts.fonts = with pkgs; [
 | 
			
		||||
    fira-mono
 | 
			
		||||
    fira-code
 | 
			
		||||
    lohit-fonts.devanagari
 | 
			
		||||
    lohit-fonts.gurmukhi
 | 
			
		||||
    nerdfonts
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user