Created all the top.nixes
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+429
-474
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,39 @@
|
||||
{
|
||||
hostname,
|
||||
pkgs,
|
||||
lib,
|
||||
modulesPath,
|
||||
user,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
../../hardware/hardware.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/69433a14-fbaf-401b-af85-cd1bbf02b4e2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/811D-0676";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/b6c557c2-7682-460b-a5e7-8f6f2f429a3a"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ config, pkgs, lib, user, inputs, ... }:
|
||||
{
|
||||
# Import all other configurations
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
# Minimal settings that must be defined here
|
||||
networking.hostName = "traveldroid";
|
||||
wm.type = "hyprland"; # Define the window manager type here, mangowc will be made possible in the nerar future.
|
||||
# In generated/top.nix the chpice fopr a window manager will be effectuated
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{ system, ... }:
|
||||
{
|
||||
username = "henrov";
|
||||
homeDirectory = "/home/henrov";
|
||||
stateVersion = "25.11";
|
||||
locale = "nl_NL.UTF-8";
|
||||
}
|
||||
|
||||
{ mkShell }:
|
||||
mkShell {
|
||||
buildInputs = with import <nixpkgs> {}; [
|
||||
nil
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
description = "Droidnix: A dendritic NixOS + Home Manager 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";
|
||||
};
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, emacs-overlay, catppuccin, zen-browser, hyprland, ... }:
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
system = lib.system.system;
|
||||
user = import ./assets/flake/users/henrov.nix;
|
||||
machines = ["traveldroid" "maindroid"];
|
||||
in
|
||||
{
|
||||
nixosConfigurations = lib.genAttrs machines (machine: lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
# Import machine-specific configurations
|
||||
./assets/flake/machines/${machine}/top.nix
|
||||
|
||||
# Home Manager and theme modules
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit user inputs; };
|
||||
}
|
||||
inputs.catppuccin.nixosModules.catppuccin
|
||||
];
|
||||
specialArgs = { inherit user inputs; };
|
||||
});
|
||||
|
||||
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
||||
inherit (nixpkgs) mkShell;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
# Your configurations here
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./placeholder.nix ];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{ config, pkgs, lib, user, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
# First the stuff that we always want, regardless of windowmanager
|
||||
./system/top.nix
|
||||
# Import window manager configurations based on the type defined in the machine file
|
||||
(if config.wm.type == "hyprland" then
|
||||
./window_managers/hyprland/top.nix
|
||||
else if config.wm.type == "mangowc" then
|
||||
./window_managers/mangowc/top.nix
|
||||
else
|
||||
assert false; "Unknown window manager type: ${config.wm.type}"
|
||||
)
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user