move unfree variable
This commit is contained in:
parent
63937b5ae3
commit
1e05c660e6
@ -7,13 +7,9 @@
|
|||||||
let
|
let
|
||||||
user = "exu";
|
user = "exu";
|
||||||
hostname = "nixos";
|
hostname = "nixos";
|
||||||
in
|
in {
|
||||||
{
|
imports =
|
||||||
imports = [
|
[ ./hardware-configuration.nix ./system-packages.nix ./home-manager.nix ];
|
||||||
./hardware-configuration.nix
|
|
||||||
./system-packages.nix
|
|
||||||
./home-manager.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
@ -21,9 +17,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
configurationLimit = 10;
|
configurationLimit = 10;
|
||||||
};
|
};
|
||||||
efi = {
|
efi = { canTouchEfiVariables = true; };
|
||||||
canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable completions by nix
|
# Enable completions by nix
|
||||||
@ -55,7 +49,8 @@ in
|
|||||||
networking.hostName = "${hostname}"; # Define your hostname.
|
networking.hostName = "${hostname}"; # Define your hostname.
|
||||||
# Pick only one of the below networking options.
|
# Pick only one of the below networking options.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
networking.networkmanager.enable =
|
||||||
|
true; # Easiest to use and most distros use this by default.
|
||||||
|
|
||||||
# disable global firewall for the time being
|
# disable global firewall for the time being
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
@ -69,9 +64,7 @@ in
|
|||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "de_CH.UTF-8";
|
i18n.defaultLocale = "de_CH.UTF-8";
|
||||||
console = {
|
console = { keyMap = "de_CH-latin1"; };
|
||||||
keyMap = "de_CH-latin1";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
@ -93,9 +86,7 @@ in
|
|||||||
|
|
||||||
# Hyprland
|
# Hyprland
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
programs.hyprland = {
|
programs.hyprland = { enable = true; };
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# sudoers file
|
# sudoers file
|
||||||
security.sudo.configFile = (builtins.readFile ./config/sudoers);
|
security.sudo.configFile = (builtins.readFile ./config/sudoers);
|
||||||
@ -126,9 +117,7 @@ in
|
|||||||
services.xserver.libinput.enable = true;
|
services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
# root config
|
# root config
|
||||||
users.users.root = {
|
users.users.root = { shell = pkgs.fish; };
|
||||||
shell = pkgs.fish;
|
|
||||||
};
|
|
||||||
|
|
||||||
# User config
|
# User config
|
||||||
users.users.${user} = {
|
users.users.${user} = {
|
||||||
@ -208,7 +197,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Swapfile
|
# Swapfile
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
swapDevices = [{ device = "/swap/swapfile"; }];
|
||||||
|
|
||||||
# Enable automatic package upgrades
|
# Enable automatic package upgrades
|
||||||
#system.autoUpgrade = {
|
#system.autoUpgrade = {
|
||||||
|
@ -6,6 +6,9 @@ let
|
|||||||
in {
|
in {
|
||||||
imports = [ <home-manager/nixos> ];
|
imports = [ <home-manager/nixos> ];
|
||||||
|
|
||||||
|
# allow unfree packages as well
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# root home
|
# root home
|
||||||
home-manager.users.root = { pkgs, ... }: {
|
home-manager.users.root = { pkgs, ... }: {
|
||||||
home.username = "root";
|
home.username = "root";
|
||||||
@ -18,9 +21,6 @@ in {
|
|||||||
|
|
||||||
imports = [ ./home-manager/hyprland.nix ./home-manager/fish.nix ];
|
imports = [ ./home-manager/hyprland.nix ./home-manager/fish.nix ];
|
||||||
|
|
||||||
# allow unfree packages as well
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# keep everything using home manager within this block
|
# keep everything using home manager within this block
|
||||||
|
Loading…
Reference in New Issue
Block a user