nix-config/hosts/archlaptop-vm/default.nix

94 lines
2.8 KiB
Nix
Raw Normal View History

2024-04-04 18:44:59 -05:00
{
inputs,
configLib,
2024-04-04 18:44:59 -05:00
...
}:
inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs configLib;};
2024-04-04 18:44:59 -05:00
# > Our main nixos configuration file <
modules = [
inputs.home-manager.nixosModules.home-manager
./hardware-configuration.nix
2024-05-09 17:47:54 -05:00
../../roles/nixos/graphical-vm.nix
../../configs/nixos/common.nix
../../configs/nixos/printing.nix
../../configs/nixos/sound.nix
2024-06-03 16:38:29 -05:00
../../configs/nixos/interactive-networking.nix
../../configs/nixos/i3
2024-06-03 17:36:45 -05:00
../../configs/nixos/sshd.nix
../../configs/nixos/secrets.nix
2024-04-04 18:44:59 -05:00
({
config,
pkgs,
configLib,
2024-04-04 18:44:59 -05:00
...
}: {
host = {
user = "gabe";
fullName = "Gabe Venberg";
2024-04-04 18:44:59 -05:00
gui.enable = true;
isVm = true;
2024-04-04 18:44:59 -05:00
};
networking.hostName = "archlaptop-vm"; # Define your hostname.
2024-04-04 18:44:59 -05:00
# Define a user account. Don't forget to set a password with passwd.
users.users.${config.host.user} = {
packages = with pkgs; [firefox];
2024-04-04 18:44:59 -05:00
};
2024-06-04 11:00:43 -05:00
home-manager.sharedModules = [
inputs.sops-nix.homeManagerModules.sops
];
2024-04-26 22:29:37 -05:00
home-manager.users.${config.host.user} = {
inputs,
osConfig,
...
}: {
host = osConfig.host;
user = {
2024-04-04 18:44:59 -05:00
git = {
profile = {
name = config.host.fullName;
2024-04-04 18:44:59 -05:00
email = "gabevenberg@gmail.com";
};
workProfile.enable = false;
};
};
imports = [
2024-05-09 17:47:54 -05:00
../../roles/home-manager/terminal.nix
../../configs/home-manager/common.nix
../../configs/home-manager/email.nix
2024-04-04 18:44:59 -05:00
inputs.nixvim.homeManagerModules.nixvim
2024-06-04 11:00:43 -05:00
../../configs/home-manager/secrets.nix
2024-04-04 18:44:59 -05:00
];
2024-06-04 11:00:43 -05:00
sops = {
secrets = {
gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
};
};
2024-04-04 18:44:59 -05:00
};
2024-05-15 13:22:50 -05:00
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2024-04-04 18:44:59 -05:00
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# 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 = "23.11"; # Did you read the comment?
})
];
}