aboutsummaryrefslogtreecommitdiffstats
path: root/nixos/configuration.nix
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-10-07 11:47:06 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-10-07 11:47:06 +0300
commit4547e75868cba2a265b78661ddc386b5e81c1bb0 (patch)
tree71924feb573c8af5030080fc007eee7bfbaabb20 /nixos/configuration.nix
downloadnix-4547e75868cba2a265b78661ddc386b5e81c1bb0.tar.gz
nix-4547e75868cba2a265b78661ddc386b5e81c1bb0.tar.bz2
nix-4547e75868cba2a265b78661ddc386b5e81c1bb0.zip
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r--nixos/configuration.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
new file mode 100644
index 0000000..be8e03f
--- /dev/null
+++ b/nixos/configuration.nix
@@ -0,0 +1,51 @@
+{
+ inputs,
+ outputs,
+ pkgs,
+ ...
+}: {
+ imports = [
+ ./desktop
+ ./hardware.nix
+ ./impermanence.nix
+ ./locale.nix
+ ./nix.nix
+ ./user.nix
+ inputs.home-manager.nixosModules.home-manager
+ ];
+
+ nixpkgs = {
+ overlays = [
+ outputs.overlays.additions
+ outputs.overlays.modifications
+ outputs.overlays.master-packages
+ inputs.nur.overlay
+ ];
+ config = {
+ allowUnfree = true;
+ };
+ };
+
+ home-manager = {
+ backupFileExtension = "bak";
+ extraSpecialArgs = {inherit inputs outputs;};
+ users.chen = import ../home-manager/home.nix;
+ };
+
+ networking = {
+ hostName = "nixosvm";
+ networkmanager.enable = true;
+ firewall.enable = true;
+ };
+
+ environment.systemPackages = with pkgs; [
+ git
+ htop
+ wget
+ ];
+
+ services.ntp.enable = true;
+ security.sudo.execWheelOnly = true;
+
+ system.stateVersion = "24.11";
+}