This commit is contained in:
iFargle 2023-07-01 18:37:30 +09:00
parent a1e9fbc56d
commit 2e807684a3
2 changed files with 5 additions and 2 deletions

View file

@ -30,7 +30,6 @@
inherit system; inherit system;
config = { allowUnfree = true; }; config = { allowUnfree = true; };
}; };
networking.hostname = "${hostname}";
lib = nixpkgs.lib; lib = nixpkgs.lib;
in { in {
# Set up users with home-manager # Set up users with home-manager
@ -54,12 +53,13 @@
# NixOS Configuration files: # NixOS Configuration files:
nixosConfigurations = { nixosConfigurations = {
# Declare the configuration for my laptop # Declare the configuration for my laptop
nixos-p1 = lib.nixosSystem { nixos = lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
{ _module.args = inputs; } { _module.args = inputs; }
# Hardware Configuration # Hardware Configuration
./hosts/${hostname}/hardware-configuration.nix ./hosts/${hostname}/hardware-configuration.nix
# Extra options for the host configuration
./hosts/${hostname}/configuration.nix ./hosts/${hostname}/configuration.nix
# SecureBoot Configuration # SecureBoot Configuration

View file

@ -1,5 +1,8 @@
{ lib, config, pkgs, ... }: { { lib, config, pkgs, ... }: {
# Set the networking hostname:
networking.hostname = "nixos-laptop";
# Enable swap on luks # Enable swap on luks
boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".device = "/dev/disk/by-uuid/9704447e-6bd0-4a35-9c24-20cbab81c431"; boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".device = "/dev/disk/by-uuid/9704447e-6bd0-4a35-9c24-20cbab81c431";
boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".keyFile = "/crypto_keyfile.bin"; boot.initrd.luks.devices."luks-9704447e-6bd0-4a35-9c24-20cbab81c431".keyFile = "/crypto_keyfile.bin";