#8 Add unfree software
This commit is contained in:
		
							parent
							
								
									0c395f2cf7
								
							
						
					
					
						commit
						d2b67505ce
					
				
					 7 changed files with 111 additions and 49 deletions
				
			
		|  | @ -1,4 +1,4 @@ | ||||||
| #!/bin/sh | #!/usr/bin/env bash | ||||||
| pushd ~/projects/sisyphus/nixos | pushd ~/projects/sisyphus/nixos | ||||||
| sudo nixos-rebuild switch --flake .# | sudo nixos-rebuild switch --flake .# | ||||||
| popd | popd | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| #!/bin/sh | #!/usr/bin/env bash | ||||||
| pushd ~/projects/sisyphus/nixos | pushd ~/projects/sisyphus/nixos | ||||||
| nix build .#homeManagerConfigurations.tdpeuter.activationPackage | nix build .#homeManagerConfigurations.tdpeuter.activationPackage | ||||||
| ./result/activate | ./result/activate | ||||||
|  |  | ||||||
							
								
								
									
										18
									
								
								nixos/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										18
									
								
								nixos/flake.lock
									
										
									
										generated
									
									
									
								
							|  | @ -37,10 +37,26 @@ | ||||||
|         "type": "indirect" |         "type": "indirect" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "nur": { | ||||||
|  |       "locked": { | ||||||
|  |         "lastModified": 1678221928, | ||||||
|  |         "narHash": "sha256-m1pwayWF9O/pK7iiX4UQBrflvdLtmbDpjwmRMPvlniA=", | ||||||
|  |         "owner": "nix-community", | ||||||
|  |         "repo": "NUR", | ||||||
|  |         "rev": "15e2403d7288984b9e53bf9a92483574f1aafe42", | ||||||
|  |         "type": "github" | ||||||
|  |       }, | ||||||
|  |       "original": { | ||||||
|  |         "owner": "nix-community", | ||||||
|  |         "repo": "NUR", | ||||||
|  |         "type": "github" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "root": { |     "root": { | ||||||
|       "inputs": { |       "inputs": { | ||||||
|         "home-manager": "home-manager", |         "home-manager": "home-manager", | ||||||
|         "nixpkgs": "nixpkgs" |         "nixpkgs": "nixpkgs", | ||||||
|  |         "nur": "nur" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "utils": { |     "utils": { | ||||||
|  |  | ||||||
|  | @ -2,9 +2,10 @@ | ||||||
|   description = "System configuration"; |   description = "System configuration"; | ||||||
|   |   | ||||||
|   inputs = { |   inputs = { | ||||||
|     nixpkgs.url = "nixpkgs/nixos-22.11"; |  | ||||||
|     home-manager.url = "github:nix-community/home-manager/release-22.11"; |     home-manager.url = "github:nix-community/home-manager/release-22.11"; | ||||||
|     home-manager.inputs.nixpkgs.follows = "nixpkgs"; |     home-manager.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|  |     nixpkgs.url = "nixpkgs/nixos-22.11"; | ||||||
|  |     nur.url = "github:nix-community/NUR"; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   outputs = { nixpkgs, home-manager, ... }: |   outputs = { nixpkgs, home-manager, ... }: | ||||||
|  | @ -13,14 +14,17 @@ | ||||||
|      |      | ||||||
|     pkgs = import nixpkgs { |     pkgs = import nixpkgs { | ||||||
|       inherit system; |       inherit system; | ||||||
|       config = { allowUnfree = true; }; |       config.allowUnfree = true; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     lib = nixpkgs.lib; |     lib = nixpkgs.lib; | ||||||
|   in { |   in rec { | ||||||
|     homeManagerConfigurations = { |     homeManagerConfigurations = { | ||||||
|       tdpeuter = home-manager.lib.homeManagerConfiguration { |       tdpeuter = home-manager.lib.homeManagerConfiguration { | ||||||
|         pkgs = nixpkgs.legacyPackages.${system}; |         pkgs = import nixpkgs { | ||||||
|  |           inherit system; | ||||||
|  |           config.allowUnfree = true; | ||||||
|  |         }; | ||||||
|         modules = [ |         modules = [ | ||||||
|           ./users/tdpeuter/home.nix |           ./users/tdpeuter/home.nix | ||||||
|           { |           { | ||||||
|  | @ -36,7 +40,7 @@ | ||||||
|     nixosConfigurations = { |     nixosConfigurations = { | ||||||
|       Tibo-NixTest = lib.nixosSystem { # Use hostname |       Tibo-NixTest = lib.nixosSystem { # Use hostname | ||||||
|         inherit system; |         inherit system; | ||||||
|         modules = [ |         modules = (builtins.attrValues) ++ [ | ||||||
|           ./system/configuration.nix |           ./system/configuration.nix | ||||||
|         ]; |         ]; | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
|  | @ -46,15 +46,6 @@ | ||||||
|   #   useXkbConfig = true; # use xkbOptions in tty. |   #   useXkbConfig = true; # use xkbOptions in tty. | ||||||
|   # }; |   # }; | ||||||
| 
 | 
 | ||||||
|   # Enable the X11 windowing system. |  | ||||||
|   services.xserver.enable = true; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|   # Enable the Plasma 5 Desktop Environment. |  | ||||||
|   services.xserver.displayManager.sddm.enable = true; |  | ||||||
|   services.xserver.desktopManager.plasma5.enable = true; |  | ||||||
|    |  | ||||||
| 
 |  | ||||||
|   # Configure keymap in X11 |   # Configure keymap in X11 | ||||||
|   # services.xserver.layout = "us"; |   # services.xserver.layout = "us"; | ||||||
|   # services.xserver.xkbOptions = { |   # services.xserver.xkbOptions = { | ||||||
|  | @ -62,6 +53,28 @@ | ||||||
|   #   "caps:escape" # map caps to escape. |   #   "caps:escape" # map caps to escape. | ||||||
|   # }; |   # }; | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  |   services.xserver = { | ||||||
|  |     # Enable the X11 windowing system. | ||||||
|  |     enable = true; | ||||||
|  | 
 | ||||||
|  |     # Enable the Plasma 5 Desktop Environment. | ||||||
|  |     displayManager.sddm.enable = true; | ||||||
|  |     displayManager.defaultSession = "plasmawayland"; | ||||||
|  | 
 | ||||||
|  |     desktopManager.plasma5 = { | ||||||
|  |       enable = true; | ||||||
|  |       excludePackages = with pkgs.libsForQt5; [ | ||||||
|  |         elisa | ||||||
|  |         okular | ||||||
|  |         plasma-browser-integration | ||||||
|  |         khelpcenter | ||||||
|  |         oxygen | ||||||
|  |       ]; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |   };   | ||||||
|  | 
 | ||||||
|   # Enable CUPS to print documents. |   # Enable CUPS to print documents. | ||||||
|   # services.printing.enable = true; |   # services.printing.enable = true; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,2 +1,2 @@ | ||||||
| #!/bin/sh | #!/usr/bin/env bash | ||||||
| nix flake update | nix flake update | ||||||
|  |  | ||||||
|  | @ -1,38 +1,67 @@ | ||||||
| { config, pkgs, ... }: | { inputs, lib, config, pkgs, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   # Home Manager needs a bit of information about you and the |   imports = [ | ||||||
|   # paths it should manage. |   ]; | ||||||
|   home.username = "tdpeuter"; |  | ||||||
|   home.homeDirectory = "/home/tdpeuter"; |  | ||||||
| 
 | 
 | ||||||
|   # This value determines the Home Manager release that your |   # Home manager | ||||||
|   # configuration is compatible with. This helps avoid breakage |   home = { | ||||||
|   # when a new Home Manager release introduces backwards |     # Home Manager needs a bit of information about you and the | ||||||
|   # incompatible changes. |     # paths it should manage. | ||||||
|   # |     username = "tdpeuter"; | ||||||
|   # You can update Home Manager without changing this value. See |     homeDirectory = "/home/tdpeuter"; | ||||||
|   # the Home Manager release notes for a list of state version |  | ||||||
|   # changes in each release. |  | ||||||
|   home.stateVersion = "22.11"; |  | ||||||
| 
 |  | ||||||
|   # Let Home Manager install and manage itself. |  | ||||||
|   programs.home-manager.enable = true; |  | ||||||
|    |    | ||||||
|   programs.gpg.enable = true; |     # This value determines the Home Manager release that your | ||||||
|   services.gpg-agent = { |     # configuration is compatible with. This helps avoid breakage | ||||||
|     enable = true; |     # when a new Home Manager release introduces backwards | ||||||
|     pinentryFlavor = "qt"; |     # incompatible changes. | ||||||
|  |     # | ||||||
|  |     # You can update Home Manager without changing this value. See | ||||||
|  |     # the Home Manager release notes for a list of state version | ||||||
|  |     # changes in each release. | ||||||
|  |     stateVersion = "22.11"; | ||||||
|  |    | ||||||
|  |     packages = with pkgs; [ | ||||||
|  |       alacritty | ||||||
|  |       duf | ||||||
|  |       git-crypt | ||||||
|  |       gnupg | ||||||
|  |       pinentry_qt | ||||||
|  |       vifm | ||||||
|  |       zellij | ||||||
|  |       zenith | ||||||
|  |       jetbrains.webstorm | ||||||
|  |     ]; | ||||||
|  |    | ||||||
|  |   }; | ||||||
|  |    | ||||||
|  |   programs = { | ||||||
|  |     # Let Home Manager install and manage itself. | ||||||
|  |     home-manager.enable = true; | ||||||
|  | 
 | ||||||
|  |     git = { | ||||||
|  |       enable = true; | ||||||
|  |       userName = "tdpeuter"; | ||||||
|  |       userEmail = "tibo.depeuter@gmail.com"; | ||||||
|  |       extraConfig = { | ||||||
|  |         core.editor = "vim"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     gpg.enable = true; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |   services = { | ||||||
|  |     gpg-agent = { | ||||||
|  |       enable = true; | ||||||
|  |       pinentryFlavor = "qt"; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     nextcloud-client = { | ||||||
|  |       enable = true; | ||||||
|  |       startInBackground = true; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   home.packages = with pkgs; [ |  | ||||||
|     alacritty |  | ||||||
|     duf |  | ||||||
|     git-crypt |  | ||||||
|     gnupg |  | ||||||
|     pinentry_qt |  | ||||||
|     zellij |  | ||||||
|     zenith |  | ||||||
|   ]; |  | ||||||
|    |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue