I dno what im oing
This commit is contained in:
		
							parent
							
								
									a1780e0f07
								
							
						
					
					
						commit
						7168e4c0c7
					
				
					 35 changed files with 120 additions and 16 deletions
				
			
		|  | @ -3,6 +3,7 @@ | |||
|         nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||||
|         home-manager.url = "github:nix-community/home-manager"; | ||||
|         home-manager.inputs.nixpkgs.follows = "nixpkgs"; | ||||
|         nix-colors.url = "github:misterio77/nix-colors"; | ||||
|     }; | ||||
| 
 | ||||
|     outputs = {  nixpkgs, home-manager, ... }: | ||||
|  | @ -18,10 +19,10 @@ | |||
|     { | ||||
|         homeConfigurations = { | ||||
|             ooks = home-manager.lib.homeManagerConfiguration { | ||||
|                 inherit pkgs; | ||||
|                 extraSpecialArgs = { inherit nixpkgs system; }; | ||||
|                 pkgs = nixpkgs.legacyPackages.x86_64-linux; | ||||
|                 extraSpecialArgs = { inherit inputs outputs; }; | ||||
|                 modules = [ | ||||
|                     ./users/main/home.nix  | ||||
|                     ./home/ooks/home.nix  | ||||
|                 ]; | ||||
|             }; | ||||
|         }; | ||||
|  |  | |||
							
								
								
									
										0
									
								
								home/ooks/modules/common/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								home/ooks/modules/common/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										70
									
								
								home/ooks/ooksx1.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										70
									
								
								home/ooks/ooksx1.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,70 @@ | |||
| { config, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   # Home Manager needs a bit of information about you and the paths it should | ||||
|   # manage. | ||||
|   home.username = "ooks"; | ||||
|   home.homeDirectory = "/home/ooks"; | ||||
| 
 | ||||
|   # This value determines the Home Manager release that your configuration is | ||||
|   # compatible with. This helps avoid breakage when a new Home Manager release | ||||
|   # introduces backwards incompatible changes. | ||||
|   # | ||||
|   # You should not change this value, even if you update Home Manager. If you do | ||||
|   # want to update the value, then make sure to first check the Home Manager | ||||
|   # release notes. | ||||
|   home.stateVersion = "23.05"; # Please read the comment before changing. | ||||
| 
 | ||||
|   # The home.packages option allows you to install Nix packages into your | ||||
|   # environment. | ||||
|   home.packages = [ | ||||
|     # # Adds the 'hello' command to your environment. It prints a friendly | ||||
|     # # "Hello, world!" when run. | ||||
|     # pkgs.hello | ||||
| 
 | ||||
|     # # It is sometimes useful to fine-tune packages, for example, by applying | ||||
|     # # overrides. You can do that directly here, just don't forget the | ||||
|     # # parentheses. Maybe you want to install Nerd Fonts with a limited number of | ||||
|     # # fonts? | ||||
|     # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) | ||||
| 
 | ||||
|     # # You can also create simple shell scripts directly inside your | ||||
|     # # configuration. For example, this adds a command 'my-hello' to your | ||||
|     # # environment: | ||||
|     # (pkgs.writeShellScriptBin "my-hello" '' | ||||
|     #   echo "Hello, ${config.home.username}!" | ||||
|     # '') | ||||
|   ]; | ||||
| 
 | ||||
|   # Home Manager is pretty good at managing dotfiles. The primary way to manage | ||||
|   # plain files is through 'home.file'. | ||||
|   home.file = { | ||||
|     # # Building this configuration will create a copy of 'dotfiles/screenrc' in | ||||
|     # # the Nix store. Activating the configuration will then make '~/.screenrc' a | ||||
|     # # symlink to the Nix store copy. | ||||
|     # ".screenrc".source = dotfiles/screenrc; | ||||
| 
 | ||||
|     # # You can also set the file content immediately. | ||||
|     # ".gradle/gradle.properties".text = '' | ||||
|     #   org.gradle.console=verbose | ||||
|     #   org.gradle.daemon.idletimeout=3600000 | ||||
|     # ''; | ||||
|   }; | ||||
| 
 | ||||
|   # You can also manage environment variables but you will have to manually | ||||
|   # source | ||||
|   # | ||||
|   #  ~/.nix-profile/etc/profile.d/hm-session-vars.sh | ||||
|   # | ||||
|   # or | ||||
|   # | ||||
|   #  /etc/profiles/per-user/ooks/etc/profile.d/hm-session-vars.sh | ||||
|   # | ||||
|   # if you don't want to manage your shell through Home Manager. | ||||
|   home.sessionVariables = { | ||||
|     # EDITOR = "emacs"; | ||||
|   }; | ||||
| 
 | ||||
|   # Let Home Manager install and manage itself. | ||||
|   programs.home-manager.enable = true; | ||||
| } | ||||
|  | @ -1,9 +0,0 @@ | |||
| 
 | ||||
| { pkgs, ... } | ||||
| { | ||||
| 
 | ||||
| # Fonts | ||||
| 
 | ||||
| 	font.fonts = with pkgs; [ | ||||
| 		(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) | ||||
| 		]; | ||||
|  | @ -46,10 +46,6 @@ | |||
| 
 | ||||
| 	nixpkgs.system = "x86_64-linux"; | ||||
| 
 | ||||
| # Allow Unfree | ||||
| # ------------------------------------------------------------------------------------------------- | ||||
| 
 | ||||
| 	nixpkgs.config.allowUnfree = true; | ||||
| 
 | ||||
| # Networking | ||||
| # ------------------------------------------------------------------------------------------------- | ||||
							
								
								
									
										0
									
								
								system/ooksx1/modules/networking.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								system/ooksx1/modules/networking.nix
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										46
									
								
								system/ooksx1/modules/security.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								system/ooksx1/modules/security.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,46 @@ | |||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| { config, pkgs, ... }: | ||||
| 
 | ||||
| 
 | ||||
| { | ||||
|   programs.gnupg.agent = { | ||||
|     enable = true; | ||||
|     enableSSHSupport = true; | ||||
|   }; | ||||
| 
 | ||||
|   security = { | ||||
|     rtkit = { | ||||
|       enable = true; | ||||
|     }; | ||||
|     polkit = { | ||||
|       enable = true; | ||||
|     }; | ||||
|     sudo = { | ||||
|       enable = true; | ||||
|       extraConfig = '' | ||||
|         ooks ALL=(ALL) NOPASSWD:ALL | ||||
|         ''; | ||||
|     } | ||||
|   }; | ||||
| 
 | ||||
|   systemd = { | ||||
|     user.services.polkit-gnome-authentication-agent-1 = { | ||||
|       description = "polkit-gnome-authentication-agent-1"; | ||||
|       wantedBy = [ "graphical-session.target" ]; | ||||
|       wants = [ "graphical-session.target" ]; | ||||
|       after = [ "graphical-session.target" ]; | ||||
|       serviceConfig = { | ||||
|           Type = "simple"; | ||||
|           ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; | ||||
|           Restart = "on-failure"; | ||||
|           RestartSec = 1; | ||||
|           TimeoutStopSec = 10; | ||||
|         }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue