mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
43 lines
1015 B
Nix
43 lines
1015 B
Nix
|
{
|
||
|
description = "My system";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||
|
home-manager = {
|
||
|
url = "github:nix-community/home-manager/master";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, home-manager }:
|
||
|
let
|
||
|
# Set the system type globally (changeme)
|
||
|
system = "x86_64-linux";
|
||
|
|
||
|
# Gather the Nix packages
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
config.allowUnfree = true;
|
||
|
};
|
||
|
|
||
|
# Pull the library functions
|
||
|
lib = nixpkgs.lib;
|
||
|
in {
|
||
|
nixosConfigurations = {
|
||
|
noah = lib.nixosSystem {
|
||
|
inherit system;
|
||
|
modules = [
|
||
|
./nixos/configuration.nix
|
||
|
home-manager.nixosModules.home-manager
|
||
|
{
|
||
|
home-manager.useGlobalPkgs = true;
|
||
|
home-manager.useUserPackages = true;
|
||
|
home-manager.users.noah = { imports = [ ./nixos/home.nix ]; };
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|