diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..51c3805 --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "A flake using my config"; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-22.11"; + home-manager.url = "github:nix-community/home-manager/release-22.11"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = { nixpkgs, home-manager, ... }: + let + system = "x86_64-linux"; + + pkgs = import nixpkgs { + inherit system; + }; + + lib = nixpkgs.lib; + in { + + nixosConfigurations = { + nixbookpro = lib.nixosSystem { + inherit system; + + modules = [ + ./system/configuration.nix + ]; + }; + }; + + }; +} diff --git a/system/configuration.nix b/system/configuration.nix index e66889c..53ca099 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -19,10 +19,12 @@ in { ]; nix.settings = { - experimental-features = [ "nix-command" ]; + experimental-features = [ "nix-command" "flakes" ]; substituters = ["https://hyprland.cachix.org"]; trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; }; + + nix.settings.trusted-users = [ "root" "tristan" ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true;