diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
| commit | 75c2af4aedd2ac5c2cfc74b346625fa4b265541d (patch) | |
| tree | f0a58a6c699dc305ae8f506a806761ad7e57029c /flake.nix | |
| download | nixos-75c2af4aedd2ac5c2cfc74b346625fa4b265541d.tar.zst | |
Nixos
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..44581ae --- /dev/null +++ b/flake.nix @@ -0,0 +1,40 @@ +{ + description = "Petri's system"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11"; + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager/release-23.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, home-manager, nixos-hardware, ... }: + let + inherit (self) outputs; + vars = { + user = "petri"; + name = "Petri Hienonen"; + email= "petri.hienonen@gmail.com"; + location = "$HOME/.nix"; + terminal = "alacritty"; + editor = "helix"; + shell = "fish"; + }; + in { + nixosConfigurations = { + saarni = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = {inherit inputs outputs vars nixpkgs-unstable; }; + modules = [ + ./hosts/saarni + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + } + ]; + }; + }; + }; +} + |
