turns out i needed to use flakes

This commit is contained in:
Your Name 2022-09-18 18:16:34 +02:00
parent d2b3665293
commit 5976e25e81
5 changed files with 28 additions and 9 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
hardware-configuration.nix

View File

@ -7,7 +7,6 @@
{ {
imports = imports =
[ [
./hardware-configuration.nix
./kakoune.nix ./kakoune.nix
]; ];
@ -18,12 +17,7 @@
''; '';
}; };
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
networking.hostName = "iota"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary
@ -238,7 +232,7 @@ $NEW_PROMPT_COMMAND"
toupper = "tr [:lower:] [:upper:]"; toupper = "tr [:lower:] [:upper:]";
tolower = "tr [:upper:] [:lower:]"; tolower = "tr [:upper:] [:lower:]";
rebuild = '' rebuild = ''
sudo sh -c "cd $HOME/.local/os && nixos-rebuild switch --flake .#iota --use-remote-sudo" sudo sh -c "cd $HOME/.local/os && nixos-rebuild switch --flake .# --use-remote-sudo"
''; '';
}; };
programs.bash.sessionVariables = { programs.bash.sessionVariables = {

View File

@ -15,7 +15,21 @@
modules = [ modules = [
home.nixosModules.home-manager home.nixosModules.home-manager
{ {
imports = [./configuration.nix]; imports = [
./configuration.nix
./hardware-configuration/iota.nix
];
}];
};
nixosConfigurations.tau = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home.nixosModules.home-manager
{
imports = [
./configuration.nix
./hardware-configuration/tau.nix
];
}]; }];
}; };

View File

@ -33,7 +33,13 @@
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
networking.hostName = "iota"; # Define your hostname.
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
} }

View File

@ -35,7 +35,13 @@
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp58s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp58s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wwp0s20f0u6i12.useDHCP = lib.mkDefault true; # networking.interfaces.wwp0s20f0u6i12.useDHCP = lib.mkDefault true;
networking.hostName = "tau"; # Define your hostname.
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
} }