nix-conf/hosts/default/configuration.nix

79 lines
1.8 KiB
Nix
Raw Permalink Normal View History

2022-09-21 10:43:19 +00:00
{
2024-04-04 05:11:19 +00:00
config,
pkgs,
lib,
inputs,
2024-04-22 05:58:04 +00:00
outputs,
2024-04-04 05:11:19 +00:00
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
2024-04-11 06:08:00 +00:00
../../modules/nixos/default.nix
inputs.home-manager.nixosModules.default
2024-04-04 05:11:19 +00:00
];
2024-04-22 05:58:04 +00:00
nixpkgs.overlays = [
outputs.overlays.master-packages
];
2022-09-21 10:43:19 +00:00
# Set your time zone.
time.timeZone = "Asia/Kolkata";
2024-03-17 16:26:31 +00:00
# Debug infod
services.nixseparatedebuginfod.enable = true;
2024-04-04 05:11:19 +00:00
nix.settings.trusted-users = ["root" "user"];
2023-06-22 13:37:26 +00:00
2022-09-21 10:43:19 +00:00
# Define a user account. Don't forget to set a password with passwd.
users.users.user = {
isNormalUser = true;
description = "user";
shell = pkgs.zsh;
2024-04-04 05:11:19 +00:00
extraGroups = ["networkmanager" "wheel" "libvirtd" "qemu" "qemu-kvm" "vo" "docker" "lxc" "incus-admin"];
2022-09-21 10:43:19 +00:00
packages = with pkgs; [
kate
2023-05-25 13:59:49 +00:00
vim
libvirt
spice-gtk
qemu
qemu_kvm
virt-viewer
virt-manager
OVMF
2024-01-03 06:46:26 +00:00
dnsmasq
2024-03-24 11:49:41 +00:00
networkmanagerapplet
2024-04-19 03:48:42 +00:00
spice-vdagent
2022-09-21 10:43:19 +00:00
];
2024-04-04 05:11:19 +00:00
};
2024-03-25 14:33:03 +00:00
users.users.root = {
subUidRanges = [
{
count = 1000;
startUid = 1000;
}
];
subGidRanges = [
{
count = 1000;
startGid = 1000;
}
];
};
2024-04-04 05:11:19 +00:00
home-manager = {
2024-04-04 05:11:19 +00:00
extraSpecialArgs = {inherit inputs;};
users = {
"user" = import ./home.nix;
};
};
2022-09-21 10:43:19 +00:00
# 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).
2023-05-22 10:26:59 +00:00
system.stateVersion = "22.11"; # Did you read the comment?
2022-09-21 10:43:19 +00:00
}