forked from jan-leila/nix-config
		
	set up defiant
This commit is contained in:
		
							parent
							
								
									c181da1de5
								
							
						
					
					
						commit
						90b53df81c
					
				
					 7 changed files with 61 additions and 24 deletions
				
			
		|  | @ -6,6 +6,6 @@ Build Command: | ||||||
| | :---------: | :------------------------: | :--------------: | :-------: | | | :---------: | :------------------------: | :--------------: | :-------: | | ||||||
| |  `twilight` |      Desktop Computer      |      Leyla       |  Desktop  | | |  `twilight` |      Desktop Computer      |      Leyla       |  Desktop  | | ||||||
| |  `horizon`  |  13 inch Framework Laptop  |      Leyla       |  Laptop   | | |  `horizon`  |  13 inch Framework Laptop  |      Leyla       |  Laptop   | | ||||||
| |  `defiant`  |         Steam Desk         |      Leyla       |  Handheld | | |  `defiant`  |         NAS Server         |      Leyla       |  Service  | | ||||||
| |  `emergent` |      Desktop Computer      |       Eve        |  Laptop   | | |  `emergent` |      Desktop Computer      |       Eve        |  Laptop   | | ||||||
| | `threshold` |           Laptop           |       Eve        |  Desktop  | | | `threshold` |           Laptop           |       Eve        |  Desktop  | | ||||||
|  |  | ||||||
|  | @ -45,31 +45,10 @@ | ||||||
|     #media-session.enable = true; |     #media-session.enable = true; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   i18n.defaultLocale = "en_US.UTF-8"; |  | ||||||
| 
 |  | ||||||
|   i18n.extraLocaleSettings = { |  | ||||||
|     LC_ADDRESS = "en_US.UTF-8"; |  | ||||||
|     LC_IDENTIFICATION = "en_US.UTF-8"; |  | ||||||
|     LC_MEASUREMENT = "en_US.UTF-8"; |  | ||||||
|     LC_MONETARY = "en_US.UTF-8"; |  | ||||||
|     LC_NAME = "en_US.UTF-8"; |  | ||||||
|     LC_NUMERIC = "en_US.UTF-8"; |  | ||||||
|     LC_PAPER = "en_US.UTF-8"; |  | ||||||
|     LC_TELEPHONE = "en_US.UTF-8"; |  | ||||||
|     LC_TIME = "en_US.UTF-8"; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   environment.systemPackages = with pkgs; [ |   environment.systemPackages = with pkgs; [ | ||||||
|     # version control |  | ||||||
|     git |  | ||||||
|      |  | ||||||
|     # helvetica font |     # helvetica font | ||||||
|     aileron |     aileron | ||||||
| 
 | 
 | ||||||
|     # system debuging tools |  | ||||||
|     iputils |  | ||||||
|     dnsutils |  | ||||||
| 
 |  | ||||||
|     cachefilesd |     cachefilesd | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  | @ -9,8 +9,29 @@ | ||||||
|   # Set your time zone. |   # Set your time zone. | ||||||
|   time.timeZone = "America/Chicago"; |   time.timeZone = "America/Chicago"; | ||||||
| 
 | 
 | ||||||
|  |   i18n.defaultLocale = "en_US.UTF-8"; | ||||||
|  | 
 | ||||||
|  |   i18n.extraLocaleSettings = { | ||||||
|  |     LC_ADDRESS = "en_US.UTF-8"; | ||||||
|  |     LC_IDENTIFICATION = "en_US.UTF-8"; | ||||||
|  |     LC_MEASUREMENT = "en_US.UTF-8"; | ||||||
|  |     LC_MONETARY = "en_US.UTF-8"; | ||||||
|  |     LC_NAME = "en_US.UTF-8"; | ||||||
|  |     LC_NUMERIC = "en_US.UTF-8"; | ||||||
|  |     LC_PAPER = "en_US.UTF-8"; | ||||||
|  |     LC_TELEPHONE = "en_US.UTF-8"; | ||||||
|  |     LC_TIME = "en_US.UTF-8"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   # List packages installed in system profile. |   # List packages installed in system profile. | ||||||
|   environment.systemPackages = with pkgs; [ |   environment.systemPackages = with pkgs; [ | ||||||
|     wget |     wget | ||||||
|  | 
 | ||||||
|  |     # version control | ||||||
|  |     git | ||||||
|  | 
 | ||||||
|  |     # system debuging tools | ||||||
|  |     iputils | ||||||
|  |     dnsutils | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
							
								
								
									
										7
									
								
								enviroments/server/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								enviroments/server/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | { pkgs, ... }: | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ../common | ||||||
|  |   ]; | ||||||
|  | 
 | ||||||
|  | } | ||||||
							
								
								
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -25,7 +25,7 @@ | ||||||
|       nixosConfigurations = { |       nixosConfigurations = { | ||||||
|       	# Leyla Laptop |       	# Leyla Laptop | ||||||
|         horizon = nixpkgs.lib.nixosSystem { |         horizon = nixpkgs.lib.nixosSystem { | ||||||
|           specialArgs = {inherit inputs;}; |           specialArgs = { inherit inputs; }; | ||||||
|           modules = [  |           modules = [  | ||||||
|             ./hosts/horizon/configuration.nix |             ./hosts/horizon/configuration.nix | ||||||
|             inputs.home-manager.nixosModules.default |             inputs.home-manager.nixosModules.default | ||||||
|  | @ -34,12 +34,19 @@ | ||||||
|         }; |         }; | ||||||
|         # Leyla Desktop |         # Leyla Desktop | ||||||
|         twilight = nixpkgs.lib.nixosSystem { |         twilight = nixpkgs.lib.nixosSystem { | ||||||
|           specialArgs = {inherit inputs;}; |           specialArgs = { inherit inputs; }; | ||||||
|           modules = [  |           modules = [  | ||||||
|             ./hosts/twilight/configuration.nix |             ./hosts/twilight/configuration.nix | ||||||
|             inputs.home-manager.nixosModules.default |             inputs.home-manager.nixosModules.default | ||||||
|           ]; |           ]; | ||||||
|         }; |         }; | ||||||
|  |         # NAS Service | ||||||
|  |         defiant = nixpkgs.lib.nixosSystem { | ||||||
|  |           specialArgs = { inherit inpits; } | ||||||
|  |           modules = [ | ||||||
|  |             ./hosts/defiant/configuration.nix | ||||||
|  |           ] | ||||||
|  |         }; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								hosts/defiant/configuration.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								hosts/defiant/configuration.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | ||||||
|  | # server nas | ||||||
|  | { config, pkgs, inputs, ... }: | ||||||
|  | { | ||||||
|  |   imports = | ||||||
|  |     [ | ||||||
|  |       inputs.sops-nix.nixosModules.sops | ||||||
|  | 
 | ||||||
|  |       ./hardware-configuration.nix | ||||||
|  |        | ||||||
|  |       ../../enviroments/server | ||||||
|  |     ]; | ||||||
|  | } | ||||||
							
								
								
									
										11
									
								
								hosts/defiant/hardware-configuration.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								hosts/defiant/hardware-configuration.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | # Do not modify this file!  It was generated by ‘nixos-generate-config’ | ||||||
|  | # and may be overwritten by future invocations.  Please make changes | ||||||
|  | # to /etc/nixos/configuration.nix instead. | ||||||
|  | { config, lib, pkgs, modulesPath, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   imports = | ||||||
|  |     [ (modulesPath + "/installer/scan/not-detected.nix") | ||||||
|  |     ]; | ||||||
|  |    | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue