nixos-laptop/flake.nix

40 lines
914 B
Nix
Raw Normal View History

2023-10-08 14:57:57 +00:00
{
description = "My NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
2023-10-08 16:03:14 +00:00
home-manager = {
url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-08 14:57:57 +00:00
};
2023-10-08 16:03:14 +00:00
outputs = { self, nixpkgs, home-manager }:
2023-10-08 14:57:57 +00:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in
{
nixosConfigurations = {
myNixos = nixpkgs.lib.nixosSystem {
2023-10-08 16:03:14 +00:00
inherit system;
2023-10-08 14:57:57 +00:00
modules = [
./configuration.nix
2023-10-08 16:03:14 +00:00
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.pim = {
imports = [ ./home/home.nix ];
};
}
2023-10-08 14:57:57 +00:00
];
};
};
};
}