mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 18:53:39 +00:00
Flatten dir structure
This commit is contained in:
4
Makefile
4
Makefile
@@ -8,7 +8,7 @@ HOSTNAME ?= $(shell hostname)
|
|||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
|
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
SWITCH_CMD := nixos-rebuild --use-remote-sudo -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix" switch --flake '.\#'
|
SWITCH_CMD := nixos-rebuild --use-remote-sudo -I nixos-config="machines/$(HOSTNAME)/configuration.nix" switch --flake '.\#'
|
||||||
endif
|
endif
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
SWITCH_CMD := exec darwin-rebuild switch --flake .
|
SWITCH_CMD := exec darwin-rebuild switch --flake .
|
||||||
@@ -18,7 +18,7 @@ switch:
|
|||||||
$(SWITCH_CMD)
|
$(SWITCH_CMD)
|
||||||
|
|
||||||
rollback:
|
rollback:
|
||||||
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix"
|
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="machines/$(HOSTNAME)/configuration.nix"
|
||||||
|
|
||||||
update:
|
update:
|
||||||
@./nix-flake-update.sh
|
@./nix-flake-update.sh
|
||||||
|
24
outputs.nix
24
outputs.nix
@@ -19,9 +19,9 @@
|
|||||||
};
|
};
|
||||||
defaultModules = [
|
defaultModules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./modules/fonts.nix
|
./fonts.nix
|
||||||
./modules/packages.nix
|
./packages.nix
|
||||||
./modules/upgrade-diff.nix
|
./upgrade-diff.nix
|
||||||
|
|
||||||
({
|
({
|
||||||
config,
|
config,
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./modules/overlays)
|
(import ./overlays)
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@@ -71,15 +71,15 @@
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
desktopLinuxModules = [
|
desktopLinuxModules = [
|
||||||
./modules/services/netdata/default.nix
|
./services/netdata/default.nix
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
hephaestus = nixpkgs.lib.nixosSystem {
|
hephaestus = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit unstable;};
|
specialArgs = {inherit unstable;};
|
||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
./modules/machines/hephaestus/configuration.nix
|
./machines/hephaestus/configuration.nix
|
||||||
./modules/machines/hephaestus/hardware.nix
|
./machines/hephaestus/hardware.nix
|
||||||
]
|
]
|
||||||
++ defaultModules
|
++ defaultModules
|
||||||
++ desktopLinuxModules;
|
++ desktopLinuxModules;
|
||||||
@@ -98,15 +98,15 @@
|
|||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
./modules/darwin.nix
|
./darwin.nix
|
||||||
./modules/machines/zelus/configuration.nix
|
./machines/zelus/configuration.nix
|
||||||
./modules/packages.nix
|
./packages.nix
|
||||||
./modules/upgrade-diff.nix
|
./upgrade-diff.nix
|
||||||
|
|
||||||
({config, ...}: {
|
({config, ...}: {
|
||||||
config = {
|
config = {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./modules/overlays)
|
(import ./overlays)
|
||||||
];
|
];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
Reference in New Issue
Block a user