forked from fabian/nix
		
	re-order configuration
This commit is contained in:
		
							parent
							
								
									33ab479e22
								
							
						
					
					
						commit
						1add39aae0
					
				
					 3 changed files with 40 additions and 34 deletions
				
			
		|  | @ -11,10 +11,12 @@ in { | ||||||
|     enable = mkEnableOption "graphics settings"; |     enable = mkEnableOption "graphics settings"; | ||||||
|   }; |   }; | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     services.xserver = { |     services = { | ||||||
|       enable = true; |       xserver = { | ||||||
|       xkb.layout = "us"; #TODO |         enable = true; | ||||||
|       displayManager.startx.enable = true; #TODO maybe crear un modulo para ly? |         xkb.layout = "us"; #TODO | ||||||
|  |         displayManager.startx.enable = true; #TODO maybe crear un modulo para ly? | ||||||
|  |       }; | ||||||
|       libinput.enable = true; |       libinput.enable = true; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -22,24 +22,26 @@ | ||||||
|     androidSupport.enable = true; |     androidSupport.enable = true; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Use the systemd-boot EFI boot loader. |   boot = { | ||||||
|   boot.loader.systemd-boot.enable = true; |     loader = { | ||||||
|   boot.loader.efi.canTouchEfiVariables = true; |       systemd-boot.enable = true; | ||||||
|   boot.tmp.useTmpfs = true; |       efi.canTouchEfiVariables = true; | ||||||
|   boot.kernelPackages = pkgs.linuxPackages_latest; |     }; | ||||||
|  |     tmp.useTmpfs = true; | ||||||
|  |     kernelPackages = pkgs.linuxPackages_latest; | ||||||
|  |   }; | ||||||
| 
 | 
 | ||||||
|   networking.hostName = "posixlycorrect"; |   networking = { | ||||||
|   networking.networkmanager.enable = true; |     hostName = "posixlycorrect"; | ||||||
|  |     networkmanager.enable = true; | ||||||
| 
 | 
 | ||||||
|   # Set your time zone. |     # The global useDHCP flag is deprecated, therefore explicitly set to false here. | ||||||
|   time.timeZone = "America/Costa_Rica"; |     # Per-interface useDHCP will be mandatory in the future, so this generated config | ||||||
| 
 |     # replicates the default behaviour. | ||||||
|   # The global useDHCP flag is deprecated, therefore explicitly set to false here. |     useDHCP = false; | ||||||
|   # Per-interface useDHCP will be mandatory in the future, so this generated config |     interfaces.enp7s0.useDHCP = true; | ||||||
|   # replicates the default behaviour. |     interfaces.wlp6s0.useDHCP = true; | ||||||
|   networking.useDHCP = false; |   }; | ||||||
|   networking.interfaces.enp7s0.useDHCP = true; |  | ||||||
|   networking.interfaces.wlp6s0.useDHCP = true; |  | ||||||
| 
 | 
 | ||||||
|   # Select internationalisation properties. |   # Select internationalisation properties. | ||||||
|   i18n.defaultLocale = "en_US.UTF-8"; |   i18n.defaultLocale = "en_US.UTF-8"; | ||||||
|  | @ -54,4 +56,6 @@ | ||||||
|     }; |     }; | ||||||
|     groups.fabian.gid = 1002; |     groups.fabian.gid = 1002; | ||||||
|   }; |   }; | ||||||
|  | 
 | ||||||
|  |   time.timeZone = "America/Costa_Rica"; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -17,6 +17,20 @@ with lib; { | ||||||
|     baseline.enable = true; |     baseline.enable = true; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |   networking.hostName = "vps"; | ||||||
|  | 
 | ||||||
|  |   users = { | ||||||
|  |     users.fabian = { | ||||||
|  |       isNormalUser = true; | ||||||
|  |       uid = 1000; | ||||||
|  |       group = "fabian"; | ||||||
|  |       shell = pkgs.zsh; | ||||||
|  |       extraGroups = ["users" "wheel" "networkmanager" "dialout" "libvirtd"]; | ||||||
|  |       openssh.authorizedKeys.keyFiles = [public_files/pki/fabian.ssh]; | ||||||
|  |     }; | ||||||
|  |     groups.fabian.gid = 1000; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   services.openssh = { |   services.openssh = { | ||||||
|     settings.PasswordAuthentication = false; |     settings.PasswordAuthentication = false; | ||||||
|   }; |   }; | ||||||
|  | @ -36,20 +50,6 @@ with lib; { | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   networking.hostName = "vps"; |  | ||||||
| 
 |  | ||||||
|   users = { |  | ||||||
|     users.fabian = { |  | ||||||
|       isNormalUser = true; |  | ||||||
|       uid = 1000; |  | ||||||
|       group = "fabian"; |  | ||||||
|       shell = pkgs.zsh; |  | ||||||
|       extraGroups = ["users" "wheel" "networkmanager" "dialout" "libvirtd"]; |  | ||||||
|       openssh.authorizedKeys.keyFiles = [public_files/pki/fabian.ssh]; |  | ||||||
|     }; |  | ||||||
|     groups.fabian.gid = 1000; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   systemd.extraConfig = '' |   systemd.extraConfig = '' | ||||||
|     DefaultTimeoutStartSec=900s |     DefaultTimeoutStartSec=900s | ||||||
|   ''; |   ''; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue