This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/flake.nix

37 lines
856 B
Nix
Raw Normal View History

2022-08-07 15:46:46 +01:00
{
description = "My personal dotfiles";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
2022-08-07 16:37:11 +01:00
outputs = inputs@{ nixpkgs, home-manager, ... }:
2022-08-07 15:46:46 +01:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in
{
2022-08-07 17:52:09 +01:00
nixosConfigurations.terra = lib.nixosSystem {
inherit system;
specialArgs = inputs;
modules = [
./system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.manuel = import ./user/home.nix;
}
];
2022-08-07 15:46:46 +01:00
};
};
}