dotfiles/flake.nix

56 lines
1.3 KiB
Nix
Raw Normal View History

2022-04-27 01:36:16 +00:00
{
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;
};
2022-04-27 13:23:26 +00:00
user = "noah";
2022-04-27 01:36:16 +00:00
in {
nixosConfigurations = {
2022-04-27 13:23:26 +00:00
desktop = nixpkgs.lib.nixosSystem {
2022-04-27 01:36:16 +00:00
inherit system;
modules = [
./nixos/configuration.nix
home-manager.nixosModules.home-manager
{
2022-04-28 22:55:15 +00:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${user} = {
imports = [
./nixos/home.nix
./modules/applications/firefox.nix
./modules/shell/fish.nix
./modules/applications/alacritty.nix
];
};
};
2022-04-27 01:36:16 +00:00
}
];
};
};
2022-04-27 13:23:26 +00:00
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [ stylua nixfmt shfmt shellcheck ];
};
2022-04-27 01:36:16 +00:00
};
}