From 2c6d70230fc7d641c19110828128ba6f3c41745e Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sun, 4 Jul 2021 09:20:05 +0200 Subject: flake: add default/desktop template --- templates/desktop/flake.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 templates/desktop/flake.nix (limited to 'templates/desktop/flake.nix') diff --git a/templates/desktop/flake.nix b/templates/desktop/flake.nix new file mode 100644 index 0000000..e0b2e40 --- /dev/null +++ b/templates/desktop/flake.nix @@ -0,0 +1,47 @@ +{ + description = "Flake for the myHostname host"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05"; + inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs"; + inputs.nixos-config-reborn = { + url = "git+https://git.huh.gdn/NixOS/nixos-config-reborn"; + inputs = { + nixpkgs.follows = "nixpkgs"; + nixpkgs-unstable.follows = "nixpkgs-unstable"; + }; + }; + inputs.nixos-hardware.url = "github:NixOS/nixos-hardware"; + + outputs = inputs @ { self, nixpkgs, nixos-config-reborn, nixos-hardware, ... }: { + + nixosConfigurations.myHostname = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = (with nixos-hardware.nixosModules; [ + common-cpu-intel + common-pc-ssd + ]) ++ (with nixos-config-reborn.nixosModules; [ + default + profiles.desktop + + usecases.desktop.development + usecases.desktop.graphical.gaming + usecases.desktop.graphical.kodi + usecases.desktop.networkManager + ]) ++ [ + ./hardware-configuration.nix + + ./boot.nix + ./host.nix + ./tinc.nix + + ({ ... }: { + home-manager.users.minijackson.home.stateVersion = "21.05"; + home-manager.users.root.home.stateVersion = "21.05"; + + system.stateVersion = "21.05"; + }) + ]; + }; + + }; +} -- cgit v1.2.3