Clean up / rearrange.
This commit is contained in:
parent
4d51dd15d7
commit
d1ef6e0f28
7 changed files with 31 additions and 36 deletions
|
@ -1,11 +1,5 @@
|
||||||
{ lib, config, pkgs, ... }: {
|
{ lib, config, pkgs, ... }: {
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
# Desktop Environments
|
|
||||||
./desktops/common.nix
|
|
||||||
# ./desktops/gnome.nix
|
|
||||||
./desktops/hyprland.nix
|
|
||||||
|
|
||||||
# Services
|
# Services
|
||||||
./services/openssh.nix
|
./services/openssh.nix
|
||||||
./services/promtail.nix
|
./services/promtail.nix
|
||||||
|
|
26
flake.nix
26
flake.nix
|
@ -5,9 +5,7 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# NixOS packages
|
# NixOS packages
|
||||||
# stable-nixpkgs.url = "nixpkgs/nixos-23.05";
|
|
||||||
unstable-nixpkgs.url = "nixpkgs/nixos-unstable";
|
unstable-nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
# master-nixpkgs.url = "nixpkgs/master";
|
|
||||||
|
|
||||||
# Manage dotfiles in a home directory
|
# Manage dotfiles in a home directory
|
||||||
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
||||||
|
@ -21,7 +19,7 @@
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
|
||||||
# Hardware support
|
# Hardware support
|
||||||
# nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
|
||||||
# Encrypted secrets in Nix configuration files
|
# Encrypted secrets in Nix configuration files
|
||||||
# https://github.com/Mic92/sops-nix
|
# https://github.com/Mic92/sops-nix
|
||||||
|
@ -29,20 +27,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
# stable-nixpkgs,
|
|
||||||
unstable-nixpkgs,
|
unstable-nixpkgs,
|
||||||
# master-nixpkgs,
|
|
||||||
home-manager,
|
home-manager,
|
||||||
lanzaboote,
|
lanzaboote,
|
||||||
nur,
|
nur,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
# nixos-hardware,
|
nixos-hardware,
|
||||||
# hyprland,
|
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
# Variables - Remember to set these
|
# Variables - Remember to set these
|
||||||
hostname = "nixos-laptop"; # Should probably set this in a minimal configuration.nix
|
hostname = "nixos-laptop"; # Should probably set this in a minimal configuration.nix?
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
pkgs = import unstable-nixpkgs {
|
pkgs = import unstable-nixpkgs {
|
||||||
|
@ -50,16 +45,6 @@
|
||||||
config = { allowUnfree = true; };
|
config = { allowUnfree = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# unstable = import unstable-nixpkgs {
|
|
||||||
# inherit system;
|
|
||||||
# config = { allowUnfree = true; };
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# master = import master-nixpkgs {
|
|
||||||
# inherit system;
|
|
||||||
# config = { allowUnfree = true; };
|
|
||||||
# }
|
|
||||||
|
|
||||||
lib = unstable-nixpkgs.lib;
|
lib = unstable-nixpkgs.lib;
|
||||||
in {
|
in {
|
||||||
# NixOS Configuration files:
|
# NixOS Configuration files:
|
||||||
|
@ -68,15 +53,12 @@
|
||||||
${hostname} = lib.nixosSystem {
|
${hostname} = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
# inherit unstable;
|
|
||||||
# inherit master;
|
|
||||||
inherit hostname;
|
inherit hostname;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
# Configuration Imports
|
# Configuration Imports
|
||||||
./hosts/${hostname}/hardware-configuration.nix # Hardware Configuration
|
|
||||||
./hosts/${hostname}/configuration.nix # Extra options for the host configuration
|
|
||||||
./configuration.nix # Common NixOS Configuration
|
./configuration.nix # Common NixOS Configuration
|
||||||
|
./hosts/${hostname}/nixos/configuration.nix # Hardware-specific Configuration
|
||||||
|
|
||||||
# Flake Imports
|
# Flake Imports
|
||||||
sops-nix.nixosModules.sops # Handle secrets
|
sops-nix.nixosModules.sops # Handle secrets
|
||||||
|
|
7
hosts/nixos-laptop/home-manager/default.nix
Normal file
7
hosts/nixos-laptop/home-manager/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, pkgs, hostname, ... }: {
|
||||||
|
imports = [
|
||||||
|
./hyprland-conf.nix
|
||||||
|
./waybar-conf.nix
|
||||||
|
# ./gnome-dconf.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,5 +1,22 @@
|
||||||
{ lib, config, pkgs, ... }: {
|
{ lib, config, pkgs, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
# Hardware Configuration
|
||||||
|
./hardware-configuration.nix
|
||||||
|
# ./networking.nix s called from the root repo/modules/networking.nix file
|
||||||
|
|
||||||
|
# Desktop Environments
|
||||||
|
# Common configuration
|
||||||
|
../../desktops/common.nix
|
||||||
|
# Hyprland
|
||||||
|
../../desktops/hyprland.nix
|
||||||
|
# Gnome
|
||||||
|
# ../../desktops/gnome.nix
|
||||||
|
# KDE
|
||||||
|
# ../../desktops/kde.nix
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Asia/Tokyo";
|
time.timeZone = "Asia/Tokyo";
|
||||||
|
|
||||||
|
@ -19,9 +36,6 @@
|
||||||
# https://libreddit.kavin.rocks/r/NixOS/comments/x04dyv/optimus_help/
|
# https://libreddit.kavin.rocks/r/NixOS/comments/x04dyv/optimus_help/
|
||||||
# boot.kernelParams = [ "nomodeset" ];
|
# boot.kernelParams = [ "nomodeset" ];
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# nVidia information:
|
# nVidia information:
|
||||||
# https://github.com/NixOS/nixpkgs/pull/211300
|
# https://github.com/NixOS/nixpkgs/pull/211300
|
||||||
# https://github.com/NixOS/nixpkgs/pull/244060
|
# https://github.com/NixOS/nixpkgs/pull/244060
|
||||||
|
@ -77,7 +91,7 @@
|
||||||
# support both 32- and 64-bit applications
|
# support both 32- and 64-bit applications
|
||||||
wineWowPackages.stable
|
wineWowPackages.stable
|
||||||
# support 32-bit only
|
# support 32-bit only
|
||||||
# wine
|
wine
|
||||||
# support 64-bit only
|
# support 64-bit only
|
||||||
# (wine.override { wineBuild = "wine64"; })
|
# (wine.override { wineBuild = "wine64"; })
|
||||||
# wine-staging (version with experimental features)
|
# wine-staging (version with experimental features)
|
|
@ -2,9 +2,7 @@
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
imports = [
|
imports = [
|
||||||
# Host specific Configs:
|
# Host specific Configs:
|
||||||
# ../../hosts/${hostname}/home-manager/gnome-dconf.nix
|
../../hosts/${hostname}/home-manager/default.nix
|
||||||
../../hosts/${hostname}/home-manager/hyprland-conf.nix
|
|
||||||
../../hosts/${hostname}/home-manager/waybar-conf.nix
|
|
||||||
|
|
||||||
# Universal Configs:
|
# Universal Configs:
|
||||||
../../home-manager/git.nix
|
../../home-manager/git.nix
|
||||||
|
|
Loading…
Reference in a new issue