initial nixos-config

This commit is contained in:
2023-08-01 05:06:16 +00:00
parent 0a7012b316
commit 6cc6a1f32c
17 changed files with 366 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ inputs, lib, config, pkgs, outputs, ... }: {
imports = [
../modules/neovim
../modules/cli
];
nixpkgs = {
config = {
allowUnfree = true; # Allow unfree packages
allowUnfreePredicate = (_: true); # Workaround for https://github.com/nix-community/home-manager/issues/2942
};
};
home = {
username = "stefan";
homeDirectory = "/home/stefan";
stateVersion = "23.05"; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
};
programs = {
home-manager.enable = true; # Enable home-manager
};
systemd.user.startServices = "sd-switch"; # Reload system units when changing configs
}