test
This commit is contained in:
parent
a1e9fbc56d
commit
2e807684a3
2 changed files with 5 additions and 2 deletions
|
@ -30,7 +30,6 @@
|
|||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
networking.hostname = "${hostname}";
|
||||
lib = nixpkgs.lib;
|
||||
in {
|
||||
# Set up users with home-manager
|
||||
|
@ -54,12 +53,13 @@
|
|||
# NixOS Configuration files:
|
||||
nixosConfigurations = {
|
||||
# Declare the configuration for my laptop
|
||||
nixos-p1 = lib.nixosSystem {
|
||||
nixos = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
{ _module.args = inputs; }
|
||||
# Hardware Configuration
|
||||
./hosts/${hostname}/hardware-configuration.nix
|
||||
# Extra options for the host configuration
|
||||
./hosts/${hostname}/configuration.nix
|
||||
|
||||
# SecureBoot Configuration
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ lib, config, pkgs, ... }: {
|
||||
|
||||
# Set the networking hostname:
|
||||
networking.hostname = "nixos-laptop";
|
||||
|
||||
# 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".keyFile = "/crypto_keyfile.bin";
|
||||
|
|
Loading…
Reference in a new issue