nix-config/capibara.nix

91 lines
2.5 KiB
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
let
2022-01-25 12:27:52 +01:00
home-manager = builtins.fetchTarball {
2022-01-28 15:11:30 +01:00
url =
2022-02-01 19:43:12 +01:00
# "https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz";
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
2022-01-25 12:27:52 +01:00
};
2022-01-18 09:32:55 +01:00
in {
2022-01-28 15:11:30 +01:00
imports = [
2022-01-18 09:32:55 +01:00
./nixos/hardware-configuration/capibara.nix
./nixos/common.nix
2022-01-25 12:27:52 +01:00
"${home-manager}/nixos"
2022-01-18 09:32:55 +01:00
];
2022-01-25 12:27:52 +01:00
home-manager.users.rilla = import home/capibara.nix;
2022-01-31 13:06:18 +01:00
#fileSystems = {
# "/home/rilla/Music" = {
# device = "narwhal:/music";
# fsType = "nfs";
# options = [
# "nfsvers=4"
# "noauto"
# "x-systemd.automount"
# "x-systemd.idle-timeout=1min"
# ];
# };
#};
2022-01-18 09:32:55 +01:00
2022-01-19 16:35:36 +01:00
environment.variables.NIXOS_CONFIG =
"/home/rilla/configs/nix-config/capibara.nix";
2022-01-18 09:32:55 +01:00
networking.networkmanager.wifi.macAddress = "CC:AF:78:75:29:32";
nixpkgs.config.allowUnfree = true;
programs.steam.enable = true;
boot = {
loader = {
grub = {
efiSupport = false;
efiInstallAsRemovable = false;
enable = true;
version = 2;
device = "/dev/disk/by-id/ata-KINGSTON_SKC600MS512G_50026B7783FC3D2F";
enableCryptodisk = true;
};
};
initrd = {
luks.devices = {
system = {
device = "/dev/disk/by-uuid/a5837435-d55e-4506-b256-e5c707d205c3";
keyFile = "/root_keyfile.bin";
2022-02-13 14:33:47 +01:00
allowDiscards = true;
2022-01-18 09:32:55 +01:00
};
user = {
device = "/dev/disk/by-uuid/0fdb839e-dee8-4374-81e6-4455cfc3ae39";
keyFile = "/data_keyfile.bin";
2022-02-13 14:33:47 +01:00
allowDiscards = true;
2022-01-18 09:32:55 +01:00
};
};
secrets = {
"/root_keyfile.bin" = "/boot/root_keyfile.bin";
"/data_keyfile.bin" = "/boot/data_keyfile.bin";
};
};
};
networking = {
hostName = "capibara";
interfaces = {
eno0.useDHCP = true;
wlp2s0.useDHCP = true;
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.05"; # Did you read the comment?
}