feat: ooksmicro host added to system & home
This commit is contained in:
		
							parent
							
								
									6af6edf819
								
							
						
					
					
						commit
						e1b874c563
					
				
					 5 changed files with 60 additions and 116 deletions
				
			
		
							
								
								
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -97,6 +97,11 @@ | ||||||
|           modules = [ ./system/hosts/ooksdesk ]; |           modules = [ ./system/hosts/ooksdesk ]; | ||||||
|           specialArgs = { inherit inputs outputs; }; |           specialArgs = { inherit inputs outputs; }; | ||||||
|         }; |         }; | ||||||
|  |         # GPD Micro-PC | ||||||
|  |         ooksmicro =  lib.nixosSystem { | ||||||
|  |           modules = [ ./system/hosts/ooksmicro ]; | ||||||
|  |           specialArgs = { inherit inputs outputs; }; | ||||||
|  |         }; | ||||||
|       }; |       }; | ||||||
|       homeConfigurations = { |       homeConfigurations = { | ||||||
|         # T480s |         # T480s | ||||||
|  | @ -111,6 +116,12 @@ | ||||||
|           pkgs = pkgsFor.x86_64-linux; |           pkgs = pkgsFor.x86_64-linux; | ||||||
|           extraSpecialArgs = { inherit inputs outputs; }; |           extraSpecialArgs = { inherit inputs outputs; }; | ||||||
|       }; |       }; | ||||||
|  |         # Main Desktop | ||||||
|  |         "ooks@ooksmicro" = lib.homeManagerConfiguration { | ||||||
|  |           modules = [ ./home/user/ooks/ooksmicro ]; | ||||||
|  |           pkgs = pkgsFor.x86_64-linux; | ||||||
|  |           extraSpecialArgs = { inherit inputs outputs; }; | ||||||
|  |       }; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										23
									
								
								home/user/ooks/ooksmicro/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								home/user/ooks/ooksmicro/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | ||||||
|  | { inputs, outputs, config, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ../../../profile | ||||||
|  |   ]; | ||||||
|  | 
 | ||||||
|  |   activeProfiles = ["base" "hyprland"]; | ||||||
|  | 
 | ||||||
|  |   home.sessionVariables.HN = "ooksmicro"; | ||||||
|  | 
 | ||||||
|  |   monitors = [{ | ||||||
|  |     name = "DSI-1"; | ||||||
|  |     width = 720; | ||||||
|  |     height = 1280; | ||||||
|  |     workspace = "1"; | ||||||
|  |     primary = true; | ||||||
|  |     transform = 3; | ||||||
|  |   }]; | ||||||
|  | 
 | ||||||
|  |   colorscheme = inputs.nix-colors.colorSchemes.gruvbox-material-dark-soft; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | @ -1,116 +0,0 @@ | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| { config, inputs, pkgs, ... }: |  | ||||||
| 
 |  | ||||||
| # Imports |  | ||||||
| # ------------------------------------------------------------------------------------------------- |  | ||||||
| 
 |  | ||||||
| { |  | ||||||
| 	imports = [ |  | ||||||
|     inputs.hardware.nixosModules.gpd-micropc |  | ||||||
| 
 |  | ||||||
| 		./hardware-configuration.nix |  | ||||||
|      |  | ||||||
|     ../common/user/ooks |  | ||||||
|     ../common/base |  | ||||||
|     ../common/features/bluetooth.nix |  | ||||||
|     ../common/features/vm.nix |  | ||||||
|     ../common/features/greetd.nix |  | ||||||
| 
 |  | ||||||
| 		]; |  | ||||||
| 
 |  | ||||||
| # Hostname and networking |  | ||||||
| # ------------------------------------------------------------------------------------------------- |  | ||||||
| 
 |  | ||||||
| 	networking = { |  | ||||||
| 		hostName = "ooksmicro"; 		 |  | ||||||
|     networkmanager.enable = true; |  | ||||||
| 		}; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # Printing |  | ||||||
| # ------------------------------------------------------------------------------------------------- |  | ||||||
| 
 |  | ||||||
|   services.printing.enable = true; |  | ||||||
| 
 |  | ||||||
| # Kernel |  | ||||||
| # ------------------------------------------------------------------------------------------------ |  | ||||||
| 
 |  | ||||||
|   boot = { |  | ||||||
|     kernelPackages = pkgs.linuxKernel.packages.linux_zen; |  | ||||||
|     kernelParams = [ "fbcon=rotate:1" ]; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # Laptop Programs |  | ||||||
| # ------------------------------------------------------------------------------------------------- |  | ||||||
| 
 |  | ||||||
|   powerManagement.powertop.enable = true; |  | ||||||
|    |  | ||||||
|   programs = { |  | ||||||
|     light.enable = true; |  | ||||||
|     dconf.enable = true; |  | ||||||
|     kdeconnect.enable = true; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
| # XDG Portal |  | ||||||
| # ------------------------------------------------------------------------------------------------ |  | ||||||
| 
 |  | ||||||
|   xdg.portal = { |  | ||||||
|     enable = true; |  | ||||||
|     wlr.enable = true; |  | ||||||
|   }; |  | ||||||
|    |  | ||||||
|   hardware = { |  | ||||||
|     opengl = { |  | ||||||
|       enable = true; |  | ||||||
|     }; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
| # gnupg |  | ||||||
| # ------------------------------------------------------------------------------------------------- |  | ||||||
| 
 |  | ||||||
| 	programs.gnupg.agent = { |  | ||||||
| 		enable = true; |  | ||||||
| 		enableSSHSupport = true; |  | ||||||
|  	}; |  | ||||||
| 
 |  | ||||||
| # Services |  | ||||||
| # ------------------------------------------------------------------------------------------------- |  | ||||||
| 
 |  | ||||||
|   services = { |  | ||||||
|     thermald = { |  | ||||||
|       enable = true; |  | ||||||
|     }; |  | ||||||
|     logind = { |  | ||||||
|       lidSwitch = "suspend"; |  | ||||||
|     }; |  | ||||||
|     dbus = { |  | ||||||
|       enable = true; |  | ||||||
|       packages = [ pkgs.gcr ]; |  | ||||||
|     }; |  | ||||||
|     auto-cpufreq = { |  | ||||||
|       enable = true; |  | ||||||
|       settings = { |  | ||||||
|         battery = { |  | ||||||
| 	        governor = "powersave"; |  | ||||||
| 	        turbo = "never"; |  | ||||||
|         }; |  | ||||||
|         charger = { |  | ||||||
| 	        governor = "performance"; |  | ||||||
| 	        turbo = "auto"; |  | ||||||
|         }; |  | ||||||
|       }; |  | ||||||
|     }; |  | ||||||
|   };	 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # System Version |  | ||||||
| # ------------------------------------------------------------------------------------------------- |  | ||||||
| 
 |  | ||||||
| 	system = { |  | ||||||
| 		stateVersion = "22.05"; |  | ||||||
| 	}; |  | ||||||
| } |  | ||||||
							
								
								
									
										26
									
								
								system/hosts/ooksmicro/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								system/hosts/ooksmicro/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | ||||||
|  | { config, inputs, pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  | 	imports = [ | ||||||
|  |     inputs.hardware.nixosModules.gpd-micropc | ||||||
|  | 		./hardware-configuration.nix | ||||||
|  |     ../../profiles | ||||||
|  | 		]; | ||||||
|  | 
 | ||||||
|  |     activeProfiles = ["base" "laptop"]; | ||||||
|  | 
 | ||||||
|  | 		systemModules.user = { | ||||||
|  | 			ooks.enable = true; | ||||||
|  | 			shell.fish.enable = true; | ||||||
|  | 		}; | ||||||
|  |   	 | ||||||
|  | 		networking = { | ||||||
|  |   		hostName = "ooksmicro"; | ||||||
|  | 		}; | ||||||
|  | 		 | ||||||
|  |     boot = { | ||||||
|  |       kernelPackages = pkgs.linuxKernel.packages.linux_zen; | ||||||
|  | 	    kernelParams = [ "fbcon=rotate:1" ]; | ||||||
|  | 
 | ||||||
|  |     }; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue