sync repo
This commit is contained in:
41
flake.nix
Normal file
41
flake.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
|
||||
description = "Autumn's laptop config";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager }@inputs:
|
||||
|
||||
let
|
||||
username = "autumn";
|
||||
system = "x86_64-linux";
|
||||
timezone = "America/Denver";
|
||||
locale = "en_US.UTF-8";
|
||||
|
||||
in {
|
||||
|
||||
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
modules = [ ./home-manager/autumn/home.nix ];
|
||||
|
||||
};
|
||||
|
||||
nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit system;
|
||||
inherit username;
|
||||
inherit timezone;
|
||||
inherit locale;
|
||||
};
|
||||
modules = [
|
||||
./system/nixos/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user