updated flake.nix - moving towards simpler home-manager config
This commit is contained in:
parent
a905e2dc3d
commit
6363c7655d
4 changed files with 105 additions and 35 deletions
17
flake.nix
17
flake.nix
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "Serenity's NixOS configuration";
|
description = "SerenityOS v0.2.5";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
hyprpicker.url = "github:hyprwm/hyprpicker";
|
hyprpicker.url = "github:hyprwm/hyprpicker";
|
||||||
# hypr-contrib.url = "github:hyprwm/contrib";
|
# hypr-contrib.url = "github:hyprwm/contrib";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -49,16 +49,6 @@
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home-manager-config = toplevel: [
|
|
||||||
home-manager.nixosModules.home-manager # Home manager go brrrr
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
# home-manager.users.serenity = toplevel;
|
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
|
||||||
# arguments to home.nix
|
|
||||||
}
|
|
||||||
];
|
|
||||||
overlay-flake-pkgs = final: prev: {
|
overlay-flake-pkgs = final: prev: {
|
||||||
};
|
};
|
||||||
common-modules = [
|
common-modules = [
|
||||||
|
|
@ -73,8 +63,9 @@
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/proserpina/configuration.nix # Load muir main nix config
|
./hosts/proserpina/configuration.nix # Load muir main nix config
|
||||||
# nixos-hardware.nixosModules.$MODEL
|
# nixos-hardware.nixosModules.$MODEL
|
||||||
] ++ home-manager-config (import ./home/home.nix) ++ common-modules;
|
] ++ common-modules;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,27 +6,27 @@
|
||||||
./modules
|
./modules
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config = {
|
# nixpkgs.config = {
|
||||||
allowUnfree = true;
|
# allowUnfree = true;
|
||||||
permittedInsecurePackages = [
|
# permittedInsecurePackages = [
|
||||||
"schildichat-web-1.11.30-sc.2"
|
# "schildichat-web-1.11.30-sc.2"
|
||||||
"electron-25.9.0"
|
# "electron-25.9.0"
|
||||||
"nix-2.15.3"
|
# "nix-2.15.3"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# nix options
|
# nix options
|
||||||
nix = {
|
# nix = {
|
||||||
settings = {
|
# settings = {
|
||||||
cores = 0;
|
# cores = 0;
|
||||||
auto-optimise-store = true;
|
# auto-optimise-store = true;
|
||||||
allowed-users = [ "@wheel" ];
|
# allowed-users = [ "@wheel" ];
|
||||||
experimental-features = [
|
# experimental-features = [
|
||||||
"nix-command"
|
# "nix-command"
|
||||||
"flakes"
|
# "flakes"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
34
modules/core/display.nix
Normal file
34
modules/core/display.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ inputs, pkgs, username, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
programs.hyprland.enable = true;
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
xdgOpenUsePortal = true;
|
||||||
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-hyprland
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
xkb.layout = "us";
|
||||||
|
displayManager.autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "${USERNAME}";
|
||||||
|
};
|
||||||
|
libinput = {
|
||||||
|
enable = true;
|
||||||
|
# mouse = {
|
||||||
|
# accelProfile = "flat";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# apparently prevents getting stuck at shutdown
|
||||||
|
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,52 @@
|
||||||
|
{ self, pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
import = [
|
||||||
# ./file.nix
|
./packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
cores = 0;
|
||||||
|
auto-optimise-store = true;
|
||||||
|
allowed-users = [
|
||||||
|
"@wheel"
|
||||||
|
];
|
||||||
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# gc = {
|
||||||
|
# automatic = true;
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
overlays = [
|
||||||
|
self.overlays.default
|
||||||
|
inputs.nur.overlay
|
||||||
|
];
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
permittedInsecurePackages = [
|
||||||
|
"schildichat-web-1.11.30-sc.2"
|
||||||
|
"electron-25.9.0"
|
||||||
|
# "nix-2.15.3"
|
||||||
|
]
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
NIXPKGS_ALLOW_UNFREE = "1";
|
||||||
|
PATH = [
|
||||||
|
"\${HOME}/.local/bin"
|
||||||
|
"\${HOME}/.config/rofi/scripts"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue