init
This commit is contained in:
		
							
								
								
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					result
 | 
				
			||||||
 | 
					result/
 | 
				
			||||||
 | 
					.direnv/
 | 
				
			||||||
 | 
					.DS_Store
 | 
				
			||||||
 | 
					.pre-commit-config.yaml
 | 
				
			||||||
 | 
					logs/
 | 
				
			||||||
							
								
								
									
										21
									
								
								home/core.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								home/core.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					{username, ...}: {
 | 
				
			||||||
 | 
					  # Home Manager needs a bit of information about you and the
 | 
				
			||||||
 | 
					  # paths it should manage.
 | 
				
			||||||
 | 
					  home = {
 | 
				
			||||||
 | 
					    inherit username;
 | 
				
			||||||
 | 
					    homeDirectory = "/home/${username}";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # 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 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 = "24.05";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Let Home Manager install and manage itself.
 | 
				
			||||||
 | 
					  programs.home-manager.enable = true;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										0
									
								
								hosts/m920q/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								hosts/m920q/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										37
									
								
								hosts/m920q/hardware-configuration.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								hosts/m920q/hardware-configuration.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
				
			|||||||
 | 
					# 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 + "/profiles/qemu-guest.nix")
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  boot.initrd.availableKernelModules = [ "ata_piix" "floppy" "sd_mod" "sr_mod" ];
 | 
				
			||||||
 | 
					  boot.initrd.kernelModules = [ ];
 | 
				
			||||||
 | 
					  boot.kernelModules = [ "kvm-intel" ];
 | 
				
			||||||
 | 
					  boot.extraModulePackages = [ ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  fileSystems."/" =
 | 
				
			||||||
 | 
					    { device = "/dev/disk/by-label/NIXROOT";
 | 
				
			||||||
 | 
					      fsType = "ext4";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  fileSystems."/boot" =
 | 
				
			||||||
 | 
					    { device = "/dev/disk/by-label/NIXBOOT";
 | 
				
			||||||
 | 
					      fsType = "vfat";
 | 
				
			||||||
 | 
					      options = [ "fmask=0022" "dmask=0022" ];
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  swapDevices = [ ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
 | 
				
			||||||
 | 
					  # (the default) this is the recommended approach. When using systemd-networkd it's
 | 
				
			||||||
 | 
					  # still possible to use this option, but it's recommended to use it in conjunction
 | 
				
			||||||
 | 
					  # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
 | 
				
			||||||
 | 
					  networking.useDHCP = lib.mkDefault true;
 | 
				
			||||||
 | 
					  # networking.interfaces.ens3.useDHCP = lib.mkDefault true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										0
									
								
								modules/system.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								modules/system.nix
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								users/phil/home.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								users/phil/home.nix
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								users/phil/nixos.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								users/phil/nixos.nix
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user