Merge pull request 'hypr-u-merge' (#8) from hypr-u-merge into hyprland-update
Reviewed-on: https://codeberg.org/serenity-F/nixdots/pulls/8
This commit is contained in:
commit
c16c825159
5 changed files with 136 additions and 133 deletions
|
|
@ -1,9 +1,6 @@
|
||||||
Hey there,
|
Hey there,
|
||||||
if you're not muis or one of muir headmates,
|
|
||||||
feel free to do as you wish with these configs :)
|
feel free to do as you wish with these configs :)
|
||||||
|
|
||||||
if you&'re a headmate, read [this](.guide/README.md)
|
|
||||||
|
|
||||||
To Do:
|
To Do:
|
||||||
|
|
||||||
> in order of priority
|
> in order of priority
|
||||||
|
|
|
||||||
|
|
@ -9,89 +9,24 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
||||||
# home-manager
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
||||||
# also split up configuration.nix and import pieces:
|
## semi-modularised config
|
||||||
|
./packages
|
||||||
|
./display
|
||||||
../home/users
|
../home/users
|
||||||
./packages.nix
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
security = {
|
## locale is common across machines
|
||||||
rtkit.enable = true;
|
## crikey !
|
||||||
sudo.execWheelOnly = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
time.timeZone = "Australia/Brisbane";
|
time.timeZone = "Australia/Brisbane";
|
||||||
i18n.defaultLocale = "en_GB.UTF-8";
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
|
||||||
nixpkgs = {
|
## gotta have sound, this too is common
|
||||||
# add overlays here
|
|
||||||
overlays = [
|
|
||||||
# to use overlays exported from other flakes:
|
|
||||||
# neovim-nightly-overlay.overlays.default
|
|
||||||
|
|
||||||
# or define it inline, for example:
|
|
||||||
# (final: prev: {
|
|
||||||
# hi = final.hello.overrideAttrs (oldAttrs: {
|
|
||||||
# patches = [ ./change-hello-to-hi.patch ];
|
|
||||||
# });
|
|
||||||
# })
|
|
||||||
];
|
|
||||||
# configure nixpkgs instance
|
|
||||||
config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
permittedInsecurePackages = [
|
|
||||||
"schildichat-web-1.11.30-sc.2"
|
|
||||||
"electron-25.9.0"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# This will add each flake input as a registry
|
|
||||||
# To make nix3 commands consistent with your flake
|
|
||||||
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
|
||||||
|
|
||||||
# This will additionally add your inputs to the system's legacy channels
|
|
||||||
# Making legacy nix commands consistent as well, awesome!
|
|
||||||
nix.nixPath = ["/etc/nix/path"];
|
|
||||||
environment.etc =
|
|
||||||
lib.mapAttrs'
|
|
||||||
(name: value: {
|
|
||||||
name = "nix/path/${name}";
|
|
||||||
value.source = value.flake;
|
|
||||||
})
|
|
||||||
config.nix.registry;
|
|
||||||
|
|
||||||
nix.settings = {
|
|
||||||
cores = 0;
|
|
||||||
auto-optimise-store = true;
|
|
||||||
allowed-users = [ "@wheel" ];
|
|
||||||
experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
|
|
||||||
boot.binfmt.registrations.appimage = {
|
|
||||||
wrapInterpreterInShell = false;
|
|
||||||
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
|
||||||
recognitionType = "magic";
|
|
||||||
offset = 0;
|
|
||||||
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
|
||||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
|
||||||
};
|
|
||||||
|
|
||||||
qt.style = "adwaita-dark";
|
|
||||||
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
|
|
@ -100,34 +35,42 @@
|
||||||
# lowLatency.enable = true;
|
# lowLatency.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.hyprland = {
|
## genuinely dunno what these do hey, like isnt sudo
|
||||||
enable = true;
|
## already restricted to @wheel only? & wut is rtkit
|
||||||
xwayland.enable = true;
|
security = {
|
||||||
|
rtkit.enable = true;
|
||||||
|
sudo.execWheelOnly = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver = {
|
## settings for nix
|
||||||
enable = true;
|
nix.settings = {
|
||||||
displayManager.sddm = {
|
## use all cores during build
|
||||||
enable = true;
|
cores = 0;
|
||||||
wayland.enable = true;
|
auto-optimise-store = true;
|
||||||
};
|
allowed-users = [ "@wheel" ];
|
||||||
|
## enable flakes uwu
|
||||||
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# apparently prevents getting stuck at shutdown
|
## disable these cuz they cause problems (thx sasha)
|
||||||
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
|
## see: https://github.com/NixOS/nixpkgs/issues/180175
|
||||||
|
|
||||||
# disable these cuz they cause problems
|
|
||||||
# see: https://github.com/NixOS/nixpkgs/issues/180175
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
networkManager-wait-online.enable = lib.mkForce false;
|
networkManager-wait-online.enable = lib.mkForce false;
|
||||||
systemd-networkd-wait-online.enable = lib.mkForce false;
|
systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
## apparently prevents getting stuck at shutdown
|
||||||
|
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
|
||||||
|
|
||||||
|
## autoupgrades ? disabled for now, need to read into
|
||||||
# system.autoUpgrade = {
|
# system.autoUpgrade = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# channel = "";
|
# channel = "";
|
||||||
# };
|
# };
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
||||||
|
## https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
core/display.nix
Normal file
20
core/display.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
wayland.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
qt.style = "adwaita-dark";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,78 @@
|
||||||
{ pkgs, ... }:
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
## -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||||
|
|
||||||
|
## find a better home for these please <3
|
||||||
|
fonts = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
spleen
|
||||||
|
terminus_font
|
||||||
|
terminus_font_ttf
|
||||||
|
(nerdfonts.override { fonts = ["NerdFontsSymbolsOnly"]; })
|
||||||
|
];
|
||||||
|
|
||||||
|
fontDir.enable = true;
|
||||||
|
|
||||||
|
fontconfig = {
|
||||||
|
defaultFonts = {
|
||||||
|
|
||||||
|
monospace = [
|
||||||
|
"TerminusTTF"
|
||||||
|
];
|
||||||
|
serif = [
|
||||||
|
"spleen-32x64"
|
||||||
|
];
|
||||||
|
sansSerif = [
|
||||||
|
"spleen-32x64"
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
## -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
|
||||||
|
## configure nixpkgs instance
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
permittedInsecurePackages = [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
## add overlays here
|
||||||
|
overlays = [
|
||||||
|
## to use overlays exported from other flakes:
|
||||||
|
# neovim-nightly-overlay.overlays.default
|
||||||
|
|
||||||
|
## or define it inline, for example:
|
||||||
|
# (final: prev: {
|
||||||
|
# hi = final.hello.overrideAttrs (oldAttrs: {
|
||||||
|
# patches = [ ./change-hello-to-hi.patch ];
|
||||||
|
# });
|
||||||
|
# })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# This will add each flake input as a registry
|
||||||
|
# To make nix3 commands consistent with your flake
|
||||||
|
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||||
|
|
||||||
|
# This will additionally add your inputs to the system's legacy channels
|
||||||
|
# Making legacy nix commands consistent as well, awesome!
|
||||||
|
nix.nixPath = ["/etc/nix/path"];
|
||||||
|
environment.etc =
|
||||||
|
lib.mapAttrs'
|
||||||
|
(name: value: {
|
||||||
|
name = "nix/path/${name}";
|
||||||
|
value.source = value.flake;
|
||||||
|
})
|
||||||
|
config.nix.registry;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
traceroute.enable = true;
|
traceroute.enable = true;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
|
|
@ -9,18 +80,13 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
## temporary
|
## temporary
|
||||||
waybar
|
waybar
|
||||||
|
|
||||||
## nixos
|
|
||||||
# nix-tree
|
|
||||||
# nix-init
|
|
||||||
# nix-index
|
|
||||||
# nixpkgs-review
|
|
||||||
# nix-output-monitor
|
|
||||||
|
|
||||||
## filsesystem
|
## filsesystem
|
||||||
udiskie
|
udiskie
|
||||||
ntfs3g
|
ntfs3g
|
||||||
|
|
@ -48,35 +114,12 @@
|
||||||
libsecret
|
libsecret
|
||||||
git-crypt
|
git-crypt
|
||||||
|
|
||||||
|
## nixos
|
||||||
|
# nix-tree
|
||||||
|
# nix-init
|
||||||
|
# nix-index
|
||||||
|
# nixpkgs-review
|
||||||
|
# nix-output-monitor
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
spleen
|
|
||||||
terminus_font
|
|
||||||
terminus_font_ttf
|
|
||||||
(nerdfonts.override { fonts = ["NerdFontsSymbolsOnly"]; })
|
|
||||||
];
|
|
||||||
|
|
||||||
fontDir.enable = true;
|
|
||||||
|
|
||||||
fontconfig = {
|
|
||||||
defaultFonts = {
|
|
||||||
|
|
||||||
monospace = [
|
|
||||||
"TerminusTTF"
|
|
||||||
];
|
|
||||||
serif = [
|
|
||||||
"spleen-32x64"
|
|
||||||
];
|
|
||||||
sansSerif = [
|
|
||||||
"spleen-32x64"
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "serenity-F";
|
userName = "serenity-F";
|
||||||
userEmail = "serenity-amalgam@protonmail.com";
|
userEmail = "serenity-F@noreply.codeberg.org";
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
# Automatically track remote branch
|
# Automatically track remote branch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue