ouch
This commit is contained in:
35
flake.nix
35
flake.nix
@@ -11,28 +11,39 @@
|
|||||||
outputs = { self, nixpkgs, home-manager }@inputs:
|
outputs = { self, nixpkgs, home-manager }@inputs:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = "autumn";
|
user = "autumn";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
timezone = "America/Denver";
|
timezone = "America/Denver";
|
||||||
locale = "en_US.UTF-8";
|
locale = "en_US.UTF-8";
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
inherit user;
|
||||||
|
inherit system;
|
||||||
|
inherit timezone;
|
||||||
|
inherit locale;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
|
|
||||||
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
extraSpecialArgs = {inherit inputs;};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{
|
nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{
|
||||||
specialArgs = {
|
specialArgs = specialArgs;
|
||||||
inherit inputs;
|
|
||||||
inherit system;
|
|
||||||
inherit username;
|
|
||||||
inherit timezone;
|
|
||||||
inherit locale;
|
|
||||||
};
|
|
||||||
modules = [
|
modules = [
|
||||||
./system/nixos/configuration.nix ./home-manager/autumn/yukigekko-home.nix
|
./system/nixos/configuration.nix home-manager.nixosModules.home-manager{
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
extraSpecialArgs = specialArgs;
|
||||||
|
users.${user} = {
|
||||||
|
home.stateVersion = "25.11";
|
||||||
|
imports = [
|
||||||
|
./home-manager/${user}/yukigekko-home.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
home.username = "autumn";
|
home.username = "autumn";
|
||||||
home.homeDirectory = "/home/autumn";
|
home.homeDirectory = "/home/autumn";
|
||||||
|
# home.stateVersion = "25.05"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
home.stateVersion = "25.05"; # Please read the comment before changing.
|
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
alowUnfree = true;
|
alowUnfree = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user