forked from nico/dots
chore: move nix specific config to its own module
This commit is contained in:
parent
66443b7679
commit
a2794a99cd
3 changed files with 10 additions and 8 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
./modules/shell.nix
|
./modules/shell.nix
|
||||||
./modules/stow.nix
|
./modules/stow.nix
|
||||||
./modules/users.nix
|
./modules/users.nix
|
||||||
|
./modules/nix.nix
|
||||||
|
|
||||||
./modules/secureboot.nix
|
./modules/secureboot.nix
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
# Nix Configuration
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
@ -35,10 +31,6 @@
|
||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
||||||
# Enable nix-command and flakes
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
|
|
||||||
# This option defines the first version of NixOS you have installed on this particular machine, and is used
|
# This option defines the first version of NixOS you have installed on this particular machine, and is used
|
||||||
# to maintain compatibility with application data (e.g. databases) created on older NixOS versions. Most
|
# to maintain compatibility with application data (e.g. databases) created on older NixOS versions. Most
|
||||||
# users should NEVER change this value after the initial install, for any reason, even if you've upgraded
|
# users should NEVER change this value after the initial install, for any reason, even if you've upgraded
|
||||||
|
|
|
||||||
9
modules/nix.nix
Normal file
9
modules/nix.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Nix Configuration
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# Enable nix-command and flakes
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue