Added lib.mkForce + backup = false
This commit is contained in:
+83
-83
@@ -1,89 +1,89 @@
|
||||
{
|
||||
description = "Henrov's nixos configuration";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
description = "Henrov's nixos configuration";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
emacs-overlay = {
|
||||
url = "github:nix-community/emacs-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
catppuccin = {
|
||||
url = "github:catppuccin/nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
zen-browser = {
|
||||
url = "github:youwen5/zen-browser-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs = inputs@{
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
emacs-overlay,
|
||||
catppuccin,
|
||||
...
|
||||
}:
|
||||
let
|
||||
user = import ./user.nix;
|
||||
lib = nixpkgs.lib;
|
||||
machines = [
|
||||
"traveldroid"
|
||||
];
|
||||
pkgs = import nixpkgs {
|
||||
inherit (user) system;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = builtins.listToAttrs (
|
||||
builtins.map (machine: {
|
||||
name = machine;
|
||||
value = lib.nixosSystem {
|
||||
modules = [
|
||||
({ ... }: {
|
||||
nixpkgs.overlays = [ emacs-overlay.overlays.default ];
|
||||
})
|
||||
./machines/${machine}/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit user inputs;
|
||||
flakeRoot = inputs.self;
|
||||
};
|
||||
emacs-overlay = {
|
||||
url = "github:nix-community/emacs-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
catppuccin = {
|
||||
url = "github:catppuccin/nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.users.${user.username} = {
|
||||
imports = [
|
||||
./machines/${machine}/home.nix
|
||||
catppuccin.homeModules.catppuccin
|
||||
];
|
||||
};
|
||||
zen-browser = {
|
||||
url = "github:youwen5/zen-browser-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
}
|
||||
|
||||
catppuccin.nixosModules.catppuccin # theme
|
||||
];
|
||||
|
||||
specialArgs = {
|
||||
hostname = machine;
|
||||
inherit user;
|
||||
inherit inputs;
|
||||
flakeRoot = inputs.self;
|
||||
};
|
||||
};
|
||||
outputs = inputs@{
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
emacs-overlay,
|
||||
catppuccin,
|
||||
...
|
||||
}:
|
||||
let
|
||||
user = import ./user.nix;
|
||||
lib = nixpkgs.lib;
|
||||
machines = [
|
||||
"traveldroid"
|
||||
];
|
||||
pkgs = import nixpkgs {
|
||||
inherit (user) system;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = builtins.listToAttrs (
|
||||
builtins.map (machine: {
|
||||
name = machine;
|
||||
value = lib.nixosSystem {
|
||||
modules = [
|
||||
({ ... }: {
|
||||
nixpkgs.overlays = [ emacs-overlay.overlays.default ];
|
||||
})
|
||||
./machines/${machine}/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit user inputs;
|
||||
flakeRoot = inputs.self;
|
||||
};
|
||||
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.users.${user.username} = {
|
||||
imports = [
|
||||
./machines/${machine}/home.nix
|
||||
catppuccin.homeModules.catppuccin
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
catppuccin.nixosModules.catppuccin # theme
|
||||
];
|
||||
|
||||
specialArgs = {
|
||||
hostname = machine;
|
||||
inherit user;
|
||||
inherit inputs;
|
||||
flakeRoot = inputs.self;
|
||||
};
|
||||
};
|
||||
}) machines
|
||||
);
|
||||
|
||||
devShells.${user.system}.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
nil
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}) machines
|
||||
);
|
||||
|
||||
devShells.${user.system}.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
nil
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user