|
|
@ -7,18 +7,25 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
# Optionals
|
|
|
|
# Optionals
|
|
|
|
on_desktop_computer = false;
|
|
|
|
desktop_computer = true;
|
|
|
|
desktop_setup = lib.optionals (config.on_desktop_computer == "true\n") [./desktop_environment.nix];
|
|
|
|
office = true;
|
|
|
|
|
|
|
|
devel.rust = true;
|
|
|
|
|
|
|
|
devel.c = true;
|
|
|
|
|
|
|
|
devel.haskell = false;
|
|
|
|
|
|
|
|
devel.java = false;
|
|
|
|
|
|
|
|
devel.ada = true;
|
|
|
|
|
|
|
|
devel.asic = false;
|
|
|
|
|
|
|
|
desktop_setup = lib.optionals (config.desktop_computer) [./desktop_environment.nix];
|
|
|
|
imports =
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
] ++ config.desktop_setup;
|
|
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
# Bootloader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
|
|
networking.hostName = "nixos"; # Define your hostname.
|
|
|
|
networking.hostName = "amelia"; # Define your hostname.
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
# Enable networking
|
|
|
@ -62,6 +69,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
# $ nix search wget
|
|
|
|
# $ nix search wget
|
|
|
|
|
|
|
|
pkg.office = lib.optionals (config.office) config.components.office.packages;
|
|
|
|
|
|
|
|
pkg.devel.rust = lib.optionals (config.devel.rust) config.components.devel.rust.packages;
|
|
|
|
|
|
|
|
pkg.devel.c = lib.optionals (config.devel.c) config.components.devel.c.packages;
|
|
|
|
|
|
|
|
pkg.devel.haskell = lib.optionals (config.devel.haskell) config.components.devel.haskell.packages;
|
|
|
|
|
|
|
|
pkg.devel.java = lib.optionals (config.devel.java) config.components.devel.java.packages;
|
|
|
|
|
|
|
|
pkg.devel.ada = lib.optionals (config.devel.ada) config.components.devel.ada.packages;
|
|
|
|
|
|
|
|
pkg.devel.asic = lib.optionals (config.devel.asic) config.components.devel.asic.packages;
|
|
|
|
|
|
|
|
additional_packages = config.pkg.office ++ config.pkg.devel.rust ++ config.pkg.devel.c ++ config.pkg.devel.haskell ++ config.pkg.devel.java ++ config.pkg.devel.ada ++ config.pkg.devel.asic;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
vim
|
|
|
|
wget
|
|
|
|
wget
|
|
|
@ -71,7 +86,7 @@
|
|
|
|
networkmanager
|
|
|
|
networkmanager
|
|
|
|
kitty
|
|
|
|
kitty
|
|
|
|
hyfetch
|
|
|
|
hyfetch
|
|
|
|
];
|
|
|
|
] ++ config.additional_packages;
|
|
|
|
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enable = true;
|
|
|
|