Compare commits
77 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 59f4b37a2c | |||
| 2e7d8fef40 | |||
| e193f075e2 | |||
| 34400702a8 | |||
| 01ac3de3ff | |||
| 6b5d28d12b | |||
| dd9d2ec9d3 | |||
| bb04a5d1fd | |||
| 861afe8e83 | |||
| 45639b77cf | |||
| 82ca6c1bf1 | |||
| ae8b9fde5d | |||
| d2e772a986 | |||
| e981f03e03 | |||
| fd30f8d1fd | |||
| 5b89c099c9 | |||
| bda8f85445 | |||
| bfbd2d8abe | |||
| ced9937c09 | |||
| a187fb5ebf | |||
| 1b74cf48d0 | |||
| 87f2adb3c9 | |||
| 0cdbf3dc00 | |||
| 64237058a2 | |||
| 5ffe2fe09f | |||
| 407b909aab | |||
| c819cb6c01 | |||
| e1d99a0279 | |||
| 3a1ce68ccf | |||
| 2574f4935f | |||
| c6aafcbcca | |||
| d33af4042e | |||
| 6492901dda | |||
| 1c9fee8aca | |||
| 79963a171b | |||
| bfb74c0f6e | |||
| 01589d2fb7 | |||
| db7066bb35 | |||
| a7a6593e40 | |||
| 4d979ce197 | |||
| 0a5a621c99 | |||
| d557938f1d | |||
| 28c1409053 | |||
| a6b08c1a98 | |||
| 2232374d24 | |||
| 4ed41b1279 | |||
| 2ec8cd6aaa | |||
| 697be1193f | |||
| 82e38f7cd6 | |||
| 97f24c894b | |||
| cc179c30a3 | |||
| 0f4d658121 | |||
| 836c18359f | |||
| a155d3fba1 | |||
| a549fafc72 | |||
| 47e6fcf96f | |||
| 35ca5c8bc0 | |||
| 923dac6f63 | |||
| 9423554aa4 | |||
| d9fc308a51 | |||
| eef4be887a | |||
| 2576eacb6b | |||
| 9290d27146 | |||
| b93b0a6dd5 | |||
| 387cc54577 | |||
| 1598b620b9 | |||
| 2ec607e5c0 | |||
| 61f9633006 | |||
| f3859db703 | |||
| 867847a059 | |||
| 467f7d47f0 | |||
| 5d7d8e4b4f | |||
| 94f91e9a6d | |||
| 904529022f | |||
| 6f6145f1c0 | |||
| e209ddd352 | |||
| 0c8d4ae178 |
@@ -1,63 +1,6 @@
|
|||||||
# Nix Sakamoto
|
# Getting Started
|
||||||
A rewrite of the original Sakamoto NixOS configuration.
|
|
||||||
|
|
||||||
## Installation
|
`nixos-rebuild switch --flake LOCATION#HOST_NAME`
|
||||||
Installing Sakamoto Nix configuration may vary on your current operating system.
|
`home-manager switch --flake LOCATION#HOST_NAME`
|
||||||
|
|
||||||
| Hosts | Description |
|
Change `LOCATION` and `HOST_NAME`.
|
||||||
|----------|--------------|
|
|
||||||
| hakase | gaming desktop (linux) |
|
|
||||||
| sakamoto | \[unavailable] server that uses containers (linux) |
|
|
||||||
| nano | \[unavailable] windows configuration |
|
|
||||||
| macos | macos configuration |
|
|
||||||
|
|
||||||
**Note: Replace `${Hosts}` with one of the options from the table above.**
|
|
||||||
|
|
||||||
### Linux Installation
|
|
||||||
|
|
||||||
1. Install [Nix](https://nixos.org).
|
|
||||||
2. Clone this directory.
|
|
||||||
```sh
|
|
||||||
$ git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos
|
|
||||||
```
|
|
||||||
3. Create a hardware-configuration.conf
|
|
||||||
```sh
|
|
||||||
$ sudo nixos-generate-config --dir ~/.config/nixos/hosts/${Hosts}/
|
|
||||||
```
|
|
||||||
4. ⚠️ Modify `config.nix` that suits your configuration. **Be sure to edit `config.nix`! Most especially `myConfig.essentials.Username`. Otherwise, your OS could break!!!**
|
|
||||||
5. Rebuild.
|
|
||||||
```sh
|
|
||||||
$ sudo nixos-rebuild switch --flake ~/.config/nixos/hosts/#${Hosts}
|
|
||||||
```
|
|
||||||
6. Install unstable channel (fixes `pkgs.fish` misconfiguration).
|
|
||||||
```sh
|
|
||||||
$ nix-channel --add https://nixos.org/channels/nixos-unstable nixos nix-channel --update
|
|
||||||
```
|
|
||||||
7. (Optional) You can install `proton-ge` by running the following command:
|
|
||||||
```sh
|
|
||||||
protonup
|
|
||||||
```
|
|
||||||
8. (Optional) Add Decky Loader for Steam via this command:
|
|
||||||
```sh
|
|
||||||
touch ~/.steam/steam/.cef-enable-remote-debugging
|
|
||||||
|
|
||||||
```
|
|
||||||
### MacOS (Darwin) Installation
|
|
||||||
1. Install [Nix](https://nixos.org).
|
|
||||||
2. Clone this directory.
|
|
||||||
```sh
|
|
||||||
$ git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos
|
|
||||||
```
|
|
||||||
3. ⚠️ Modify `config.nix` that suits your configuration. **Be sure to edit `config.nix`! Most especially `myConfig.essentials.Username`. Otherwise, configuration would not work!!!**
|
|
||||||
4. Rebuild.
|
|
||||||
```sh
|
|
||||||
$ sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nixos#macos
|
|
||||||
```
|
|
||||||
|
|
||||||
## Problems:
|
|
||||||
* XDG defaults (file manager default is terminal)
|
|
||||||
* File Manager must be TUI
|
|
||||||
* Bluetooth and WiFi should open at TUI
|
|
||||||
* Steam and Heroic incompatible
|
|
||||||
* Broken switchwall.sh
|
|
||||||
* Box fonts
|
|
||||||
|
|||||||
-88
@@ -1,88 +0,0 @@
|
|||||||
{
|
|
||||||
myConfig = {
|
|
||||||
macos = {
|
|
||||||
Username = "lsoriano";
|
|
||||||
};
|
|
||||||
essentials = {
|
|
||||||
# !!! replace it with your own, else system might malfunction.
|
|
||||||
Username = "kenji";
|
|
||||||
};
|
|
||||||
general = {
|
|
||||||
Terminal = {
|
|
||||||
font = "JetBrainsMono Nerd Font";
|
|
||||||
size = "18";
|
|
||||||
shell = "fish"; # or zsh
|
|
||||||
aliases = {};
|
|
||||||
};
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nixos = {
|
|
||||||
Hostname = "hakase";
|
|
||||||
Timezone = "America/Chicago";
|
|
||||||
enableSteamOS = false;
|
|
||||||
|
|
||||||
Boot = {
|
|
||||||
mode = "systemd"; # systemd or grub
|
|
||||||
};
|
|
||||||
Apps = {
|
|
||||||
packages = pkgs:
|
|
||||||
with pkgs; [
|
|
||||||
adwaita-icon-theme
|
|
||||||
jellyfin-media-player
|
|
||||||
delfin
|
|
||||||
goverlay
|
|
||||||
geekbench_6
|
|
||||||
gparted
|
|
||||||
ntfs3g
|
|
||||||
feishin
|
|
||||||
discord
|
|
||||||
xfce.thunar
|
|
||||||
];
|
|
||||||
};
|
|
||||||
Hyprland = {
|
|
||||||
monitors = [
|
|
||||||
# "DP-2, highres@165,0x1080,1,vrr,1"
|
|
||||||
# "DP-2, highres@180,0x1080,1,cm,hdr, sdrbrightness, 1.5, sdrsaturation, 0.98"
|
|
||||||
"DP-2, highres@180,0x1080,1,bitdepth,10,cm,hdr,sdrbrightness,1.4,sdrsaturation,0.98"
|
|
||||||
"DP-1, highres@highrr,760x0,1"
|
|
||||||
"HDMI-A-1, 1920x1080@120, 20000x20000,1"
|
|
||||||
# "HDMI-A-1, disabled"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
Git = {
|
|
||||||
user = "kenji";
|
|
||||||
email = "kenji@hakase";
|
|
||||||
defaultBranch = "master";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
optionals = {
|
|
||||||
Builds = {
|
|
||||||
trustedUsers = [
|
|
||||||
"@groups"
|
|
||||||
];
|
|
||||||
buildMachines = [
|
|
||||||
{
|
|
||||||
hostName = "";
|
|
||||||
sshUser = "";
|
|
||||||
sshKey = "";
|
|
||||||
system = "";
|
|
||||||
supportedFeatures = ["apple-virt" "big-parallel" "kvm" "nixos-test"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
Ssh = {
|
|
||||||
extraConfig = ''
|
|
||||||
Host macair
|
|
||||||
User biscuit
|
|
||||||
HostName 192.168.68.81
|
|
||||||
|
|
||||||
Host gitea.sakamoto.dev
|
|
||||||
User kenji
|
|
||||||
ProxyCommand cloudflared access ssh --hostname %h
|
|
||||||
HostName gitea.sakamoto.dev
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Generated
+136
-1839
File diff suppressed because it is too large
Load Diff
@@ -1,144 +1,101 @@
|
|||||||
{
|
{
|
||||||
description = "A rewrite of the original Sakamoto NixOS config.";
|
description = "A very basic flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs"; # ensures version follows nixpkgs
|
||||||
|
|
||||||
jovian = {
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
url = "github:Jovian-Experiments/Jovian-NixOS";
|
hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
matugen = {
|
astal.url = "github:aylur/astal";
|
||||||
url = "github:/InioX/Matugen";
|
astal.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
# ref = "refs/tags/matugen-v0.10.0";
|
|
||||||
};
|
|
||||||
|
|
||||||
erosanix = {
|
ags.url = "github:aylur/ags";
|
||||||
url = "github:emmanuelrosa/erosanix";
|
ags.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
hyprland = {
|
hyprpanel.url = "github:Jas-SinghFSU/Hyprpanel";
|
||||||
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprpanel.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
url = "github:nix-community/home-manager";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
darwin = {
|
|
||||||
url = "github:lnl7/nix-darwin";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
nixovim = {
|
|
||||||
url = "git+https://git.sakamoto.dev/kenji/nixovim.git";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
illogical-impulse = {
|
|
||||||
url = "git+https://git.sakamoto.dev/kenji/illogical-impulse.git";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
omarchy-nix = {
|
|
||||||
url = "git+https://git.sakamoto.dev/kenji/omarchy-nix.git";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.home-manager.follows = "home-manager";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
darwin,
|
ags,
|
||||||
chaotic,
|
astal,
|
||||||
jovian,
|
hyprpanel,
|
||||||
nixovim,
|
|
||||||
illogical-impulse,
|
|
||||||
erosanix,
|
|
||||||
omarchy-nix,
|
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
config = import ./config.nix;
|
lib = nixpkgs.lib;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
args =
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
{
|
|
||||||
inherit inputs system;
|
|
||||||
}
|
|
||||||
// config;
|
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
# TODO: migrate to another nix file.
|
||||||
hakase = nixpkgs.lib.nixosSystem {
|
# packages.${system}.default = pkgs.stdenv.mkDerivation {
|
||||||
specialArgs = args;
|
# pname = "marble";
|
||||||
modules = [
|
# src = ./marble;
|
||||||
chaotic.nixosModules.default
|
# dontUnpack = true;
|
||||||
home-manager.nixosModules.home-manager
|
#
|
||||||
jovian.nixosModules.default
|
# nativeBuildInputs = with pkgs; [
|
||||||
erosanix.nixosModules.protonvpn
|
# wrapGAppsHook
|
||||||
./hosts/hakase/configuration.nix
|
# gobject-introspection
|
||||||
];
|
# ];
|
||||||
};
|
#
|
||||||
hakase-omarchy = nixpkgs.lib.nixosSystem {
|
# buildInputs =
|
||||||
specialArgs = args;
|
# (with astal.packages.${system}; [
|
||||||
modules = [
|
# astal3
|
||||||
chaotic.nixosModules.default
|
# io
|
||||||
omarchy-nix.nixosModules.default
|
# apps
|
||||||
home-manager.nixosModules.home-manager
|
# battery
|
||||||
./hosts/hakase-omarchy/configuration.nix
|
# bluetooth
|
||||||
];
|
# hyprland
|
||||||
};
|
# mpris
|
||||||
vanilla = nixpkgs.lib.nixosSystem {
|
# network
|
||||||
specialArgs = args;
|
# notifd
|
||||||
modules = [
|
# powerprofiles
|
||||||
./hosts/vanilla/configuration.nix
|
# tray
|
||||||
# nixovim.packages.${system}.full
|
# wireplumber
|
||||||
];
|
# ])
|
||||||
};
|
# ++ (with pkgs; [
|
||||||
};
|
# gjs
|
||||||
|
# ]);
|
||||||
|
#
|
||||||
|
# preFixup = ''
|
||||||
|
# gappsWrapperArgs+=(
|
||||||
|
# --prefix PATH : ${with pkgs;
|
||||||
|
# lib.makeBinPath [
|
||||||
|
# dart-sass
|
||||||
|
# fzf
|
||||||
|
# ]}
|
||||||
|
# )
|
||||||
|
# '';
|
||||||
|
#
|
||||||
|
# installPhase = ''
|
||||||
|
# mkdir -p $out/bin
|
||||||
|
# install $src $out/bin/marble
|
||||||
|
# '';
|
||||||
|
# }; # END TODO
|
||||||
|
|
||||||
|
nixosConfigurations = {
|
||||||
|
biscuit = lib.nixosSystem {
|
||||||
|
specialArgs = {inherit inputs system;};
|
||||||
|
inherit system;
|
||||||
|
modules = [
|
||||||
|
./nixos/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
hakase = home-manager.lib.homeManagerConfiguration {
|
biscuit = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
config.allowUnfree = true;
|
inherit system;
|
||||||
extraSpecialArgs = args;
|
overlays = [inputs.hyprpanel.overlay];
|
||||||
};
|
};
|
||||||
modules = [
|
# inherit pkgs;
|
||||||
home-manager.nixosModules.home-manager
|
extraSpecialArgs = {inherit inputs system;};
|
||||||
./home/hakase.nix
|
modules = [./home-manager/home.nix];
|
||||||
];
|
|
||||||
};
|
|
||||||
hakase-omarchy = home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
config.allowUnfree = true;
|
|
||||||
extraSpecialArgs = args;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
./home/hakase-omarchy.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
darwinConfigurations = {
|
|
||||||
macos = darwin.lib.darwinSystem {
|
|
||||||
system = "aarch64-darwin";
|
|
||||||
specialArgs =
|
|
||||||
{
|
|
||||||
inherit inputs;
|
|
||||||
system = "aarch64-darwin";
|
|
||||||
}
|
|
||||||
// config;
|
|
||||||
modules = [
|
|
||||||
home-manager.darwinModules.home-manager
|
|
||||||
./hosts/macos/darwin.nix
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
inputs, outputs, lib, config, pkgs, ...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
../modules/editor.nix
|
||||||
|
../modules/terminal.nix
|
||||||
|
../modules/wayland.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
username = "biscuit";
|
||||||
|
homeDirectory = "/home/biscuit";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = [];
|
||||||
|
home.sessionVariables = {};
|
||||||
|
|
||||||
|
programs.git.enable = true;
|
||||||
|
programs.neovim.enable = true;
|
||||||
|
|
||||||
|
systemd.user.startServices = "sd-switch";
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
home.stateVersion = "23.05";
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
../modules/home/terminal.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
home.packages = [];
|
|
||||||
home.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
# ... your other imports
|
|
||||||
inputs.omarchy-nix.homeManagerModules.default # Assuming you have a system module too
|
|
||||||
];
|
|
||||||
|
|
||||||
# ADD THIS BLOCK
|
|
||||||
|
|
||||||
home.stateVersion = "25.05";
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
info = import ../config.nix;
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
# inputs.chaotic.homeManagerModules.default
|
|
||||||
../modules/home/desktop.nix
|
|
||||||
../modules/home/terminal.nix
|
|
||||||
../modules/home/apps.nix
|
|
||||||
];
|
|
||||||
# nix.package = pkgs.nix;
|
|
||||||
home.packages = info.myConfig.nixos.Apps.packages pkgs;
|
|
||||||
home.stateVersion = "25.05";
|
|
||||||
}
|
|
||||||
@@ -1,156 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
specialArgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
../../modules/default/boot.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
time.timeZone = "${myConfig.nixos.Timezone}";
|
|
||||||
nixpkgs.config.allowUnfree = myConfig.general.allowUnfree;
|
|
||||||
|
|
||||||
console = {
|
|
||||||
earlySetup = false;
|
|
||||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
|
||||||
packages = with pkgs; [terminus_font];
|
|
||||||
useXkbConfig = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users = {
|
|
||||||
# defaultUserShell = pkgs.${myConfig.general.Terminal.shell};
|
|
||||||
users = {
|
|
||||||
${myConfig.essentials.Username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ["wheel" "networkmanager" "input" "video"];
|
|
||||||
initialHashedPassword = "$y$j9T$NHFtSwF4NJtEmgMjy4Xdg.$9WQltjEx3eEfZ7GbpGLW8lBhJtiXPOeIawrxdmx0.vB";
|
|
||||||
useDefaultShell = true;
|
|
||||||
packages = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
omarchy = {
|
|
||||||
full_name = "${myConfig.essentials.Username}"; # Or variable
|
|
||||||
email_address = "${myConfig.nixos.Git.email}";
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
backupFileExtension = "backup";
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
extraSpecialArgs = specialArgs;
|
|
||||||
users.${myConfig.essentials.Username} = import ../../home/hakase-omarchy.nix;
|
|
||||||
};
|
|
||||||
networking = {
|
|
||||||
useDHCP = false;
|
|
||||||
wireless = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
networkmanager.enable = true;
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [22 80 531];
|
|
||||||
allowedUDPPorts = [53 531 5353];
|
|
||||||
};
|
|
||||||
proxy = {
|
|
||||||
default = null;
|
|
||||||
noProxy = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
# network.enable = true;
|
|
||||||
# extraConfig = "DefaultTimeoutStopSec=5s";
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
settings = {
|
|
||||||
experimental-features = ["nix-command" "flakes"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#
|
|
||||||
# hardware = {
|
|
||||||
# enableAllFirmware = true;
|
|
||||||
# logitech.wireless.enable = true;
|
|
||||||
#
|
|
||||||
# bluetooth = {
|
|
||||||
# enable = true;
|
|
||||||
# powerOnBoot = true;
|
|
||||||
# settings = {
|
|
||||||
# General = {
|
|
||||||
# # AutoEnable = true;
|
|
||||||
# Experimental = true;
|
|
||||||
# MultiProfile = "multiple";
|
|
||||||
# FastConnectable = true;
|
|
||||||
# # ControllerMode = "bredr";
|
|
||||||
# };
|
|
||||||
# Policy = {
|
|
||||||
# AutoEnable = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# graphics = {
|
|
||||||
# enable = true;
|
|
||||||
# enable32Bit = true;
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# xone.enable = true;
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
|
|
||||||
# security.rtkit.enable = true;
|
|
||||||
|
|
||||||
# programs = {
|
|
||||||
# bash.interactiveShellInit = ''
|
|
||||||
# if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]; then
|
|
||||||
# shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
|
||||||
# exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
||||||
# fi
|
|
||||||
# '';
|
|
||||||
# zsh.enable = true;
|
|
||||||
# fish.enable = true;
|
|
||||||
#
|
|
||||||
# appimage = {
|
|
||||||
# enable = true;
|
|
||||||
# binfmt = true;
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# ssh.extraConfig = myConfig.optionals.Ssh.extraConfig;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# jovian.steamos.enableMesaPatches = true;
|
|
||||||
#
|
|
||||||
# services = {
|
|
||||||
# displayManager.sessionPackages = [
|
|
||||||
# inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland
|
|
||||||
# ];
|
|
||||||
#
|
|
||||||
# getty.autologinUser = lib.mkOverride 10 "${myConfig.essentials.Username}";
|
|
||||||
#
|
|
||||||
# flatpak.enable = true;
|
|
||||||
# seatd.enable = true;
|
|
||||||
# upower.enable = true;
|
|
||||||
# scx.enable = true;
|
|
||||||
# libinput.enable = true;
|
|
||||||
# blueman.enable = true;
|
|
||||||
# printing.enable = true;
|
|
||||||
# openssh.enable = true;
|
|
||||||
#
|
|
||||||
# pipewire = {
|
|
||||||
# enable = true;
|
|
||||||
# alsa = {
|
|
||||||
# enable = true;
|
|
||||||
# support32Bit = true;
|
|
||||||
# };
|
|
||||||
# pulse.enable = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/mapper/luks-9091013c-0763-40a6-8316-d44d52df3530";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-9091013c-0763-40a6-8316-d44d52df3530".device = "/dev/disk/by-uuid/9091013c-0763-40a6-8316-d44d52df3530";
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/B332-BF84";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
specialArgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
./hardware-configuration.nix
|
|
||||||
../../modules/default/apps.nix
|
|
||||||
../../modules/default/desktop.nix
|
|
||||||
../../modules/default/remote.nix
|
|
||||||
../../modules/default/gaming.nix
|
|
||||||
../../modules/default/udev.nix
|
|
||||||
../../modules/default/boot.nix
|
|
||||||
../../modules/default/dev.nix
|
|
||||||
../../modules/default/security.nix
|
|
||||||
]
|
|
||||||
++ lib.optionals (myConfig.nixos.enableSteamOS == false) [
|
|
||||||
../../modules/default/login.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
time.timeZone = "${myConfig.nixos.Timezone}";
|
|
||||||
|
|
||||||
console = {
|
|
||||||
earlySetup = false;
|
|
||||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
|
||||||
packages = with pkgs; [terminus_font];
|
|
||||||
useXkbConfig = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users = {
|
|
||||||
defaultUserShell = pkgs.${myConfig.general.Terminal.shell};
|
|
||||||
users = {
|
|
||||||
${myConfig.essentials.Username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ["wheel" "networkmanager" "input" "video"];
|
|
||||||
initialHashedPassword = "$y$j9T$NHFtSwF4NJtEmgMjy4Xdg.$9WQltjEx3eEfZ7GbpGLW8lBhJtiXPOeIawrxdmx0.vB";
|
|
||||||
useDefaultShell = true;
|
|
||||||
packages = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
backupFileExtension = "backup";
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
extraSpecialArgs = specialArgs;
|
|
||||||
users.${myConfig.essentials.Username} = import ../../home/hakase.nix;
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = myConfig.general.allowUnfree;
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
distributedBuilds = true;
|
|
||||||
settings = {
|
|
||||||
builders-use-substitutes = true;
|
|
||||||
trusted-users = myConfig.optionals.Builds.trustedUsers;
|
|
||||||
experimental-features = ["nix-command" "flakes"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
enableAllFirmware = true;
|
|
||||||
logitech.wireless.enable = true;
|
|
||||||
|
|
||||||
bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = true;
|
|
||||||
settings = {
|
|
||||||
General = {
|
|
||||||
Enable = "Source,Sink,Media,Socket";
|
|
||||||
# AutoEnable = true;
|
|
||||||
Experimental = true;
|
|
||||||
MultiProfile = "multiple";
|
|
||||||
FastConnectable = true;
|
|
||||||
# ControllerMode = "bredr";
|
|
||||||
};
|
|
||||||
Policy = {
|
|
||||||
AutoEnable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
graphics = {
|
|
||||||
enable = true;
|
|
||||||
enable32Bit = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
xone.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
useDHCP = false;
|
|
||||||
wireless = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
networkmanager.enable = true;
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [22 80];
|
|
||||||
allowedUDPPorts = [53];
|
|
||||||
};
|
|
||||||
proxy = {
|
|
||||||
default = null;
|
|
||||||
noProxy = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
# network.enable = true;
|
|
||||||
# extraConfig = "DefaultTimeoutStopSec=5s";
|
|
||||||
};
|
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
bash.interactiveShellInit = ''
|
|
||||||
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]; then
|
|
||||||
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
|
||||||
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
zsh.enable = true;
|
|
||||||
fish.enable = true;
|
|
||||||
|
|
||||||
appimage = {
|
|
||||||
enable = true;
|
|
||||||
binfmt = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
ssh.extraConfig = myConfig.optionals.Ssh.extraConfig;
|
|
||||||
};
|
|
||||||
|
|
||||||
# jovian.steamos.enableMesaPatches = true;
|
|
||||||
|
|
||||||
services = {
|
|
||||||
displayManager.sessionPackages = [
|
|
||||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
getty.autologinUser = lib.mkOverride 10 "${myConfig.essentials.Username}";
|
|
||||||
|
|
||||||
flatpak.enable = true;
|
|
||||||
seatd.enable = true;
|
|
||||||
upower.enable = true;
|
|
||||||
scx.enable = true;
|
|
||||||
libinput.enable = true;
|
|
||||||
blueman.enable = true;
|
|
||||||
printing.enable = true;
|
|
||||||
openssh.enable = true;
|
|
||||||
|
|
||||||
pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa = {
|
|
||||||
enable = true;
|
|
||||||
support32Bit = true;
|
|
||||||
};
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
avahi = {
|
|
||||||
enable = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/mapper/luks-f8bd85aa-b08e-472a-b7f6-5e190b9b9714";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-f8bd85aa-b08e-472a-b7f6-5e190b9b9714".device = "/dev/disk/by-uuid/f8bd85aa-b08e-472a-b7f6-5e190b9b9714";
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/72BA-AF9B";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
specialArgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
../../modules/default/darwin.nix
|
|
||||||
];
|
|
||||||
environment.systemPackages = [];
|
|
||||||
|
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
|
||||||
# nix.settings.trusted-users = myConfig.optionals.Builds.trustedUsers;
|
|
||||||
|
|
||||||
programs.zsh.enable = true; # default shell on catalina
|
|
||||||
programs.fish.enable = true;
|
|
||||||
|
|
||||||
system.stateVersion = 5;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
||||||
security.pam.services.sudo_local.touchIdAuth = true;
|
|
||||||
|
|
||||||
users.users.${myConfig.macos.Username} = {
|
|
||||||
name = "${myConfig.macos.Username}";
|
|
||||||
home = "/Users/${myConfig.macos.Username}";
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = specialArgs;
|
|
||||||
home-manager.users.${myConfig.macos.Username} = import ../../home/darwin.nix;
|
|
||||||
}
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page, on
|
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
# networking.hostName = "nixos"; # Define your hostname.
|
|
||||||
# Pick only one of the below networking options.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "${myConfig.nixos.Timezone}";
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
console = {
|
|
||||||
earlySetup = false;
|
|
||||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
|
||||||
packages = with pkgs; [terminus_font];
|
|
||||||
useXkbConfig = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
# services.xserver.enable = true;
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
# services.xserver.xkb.layout = "us";
|
|
||||||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
# services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound.
|
|
||||||
# services.pulseaudio.enable = true;
|
|
||||||
# OR
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
services = {
|
|
||||||
blueman.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.${myConfig.essentials.Username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ["wheel"]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
tree
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# programs.firefox.enable = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile.
|
|
||||||
# You can use https://search.nixos.org/ to find more packages (and options).
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
inputs.nixovim.packages.${system}.full
|
|
||||||
# linux-firmware
|
|
||||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.firmware = [
|
|
||||||
pkgs.linux-firmware
|
|
||||||
];
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
|
||||||
# accidentally delete configuration.nix.
|
|
||||||
# system.copySystemConfiguration = true;
|
|
||||||
|
|
||||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
|
||||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
|
||||||
#
|
|
||||||
# Most users should NEVER change this value after the initial install, for any reason,
|
|
||||||
# even if you've upgraded your system to a new NixOS release.
|
|
||||||
#
|
|
||||||
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
|
||||||
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
|
|
||||||
# to actually do that.
|
|
||||||
#
|
|
||||||
# This value being lower than the current NixOS release does NOT mean your system is
|
|
||||||
# out of date, out of support, or vulnerable.
|
|
||||||
#
|
|
||||||
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
|
||||||
# and migrated your data accordingly.
|
|
||||||
#
|
|
||||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
usbutils
|
|
||||||
pciutils
|
|
||||||
pavucontrol
|
|
||||||
wget
|
|
||||||
dualsensectl
|
|
||||||
protontricks
|
|
||||||
wl-clipboard
|
|
||||||
tldr
|
|
||||||
anki
|
|
||||||
lact
|
|
||||||
lm_sensors
|
|
||||||
grim
|
|
||||||
];
|
|
||||||
imports = [
|
|
||||||
../../packages/virtualbox/default.nix
|
|
||||||
# ../../packages/lact/default.nix
|
|
||||||
];
|
|
||||||
hardware.amdgpu.overdrive.enable = true;
|
|
||||||
services.lact.enable = true;
|
|
||||||
# services = {
|
|
||||||
# protonvpn = {
|
|
||||||
# enable = true;
|
|
||||||
# autostart = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
{
|
|
||||||
myConfig,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
boot = {
|
|
||||||
loader = {
|
|
||||||
timeout = 0;
|
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot";
|
|
||||||
};
|
|
||||||
|
|
||||||
limine = lib.mkIf (myConfig.nixos.Boot.mode == "limine") {
|
|
||||||
enable = true;
|
|
||||||
maxGenerations = 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd-boot = lib.mkIf (myConfig.nixos.Boot.mode == "systemd") {
|
|
||||||
enable = true;
|
|
||||||
# xbootldrMountPoint = "/boot";
|
|
||||||
|
|
||||||
edk2-uefi-shell.enable = true;
|
|
||||||
edk2-uefi-shell.sortKey = "z_edk2";
|
|
||||||
};
|
|
||||||
|
|
||||||
# grub ain't that great for advanced setups such as using a secure boot.
|
|
||||||
grub = lib.mkIf (myConfig.nixos.Boot.mode == "grub") {
|
|
||||||
enable = true;
|
|
||||||
efiSupport = true;
|
|
||||||
device = "nodev";
|
|
||||||
useOSProber = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
plymouth = {
|
|
||||||
enable = false;
|
|
||||||
theme = "seal";
|
|
||||||
themePackages = with pkgs; [
|
|
||||||
(adi1090x-plymouth-themes.override {
|
|
||||||
selected_themes = ["seal"];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# blacklistedKernelModules = ["tpm_crb" "tpm_tis" "tpm"];
|
|
||||||
|
|
||||||
kernelPackages = pkgs.linuxPackages_cachyos;
|
|
||||||
kernelParams = [
|
|
||||||
# "quiet"
|
|
||||||
# "splash"
|
|
||||||
"boot.shell_on_fail"
|
|
||||||
"udev.log_priority=3"
|
|
||||||
"rd.systemd.show_status=auto"
|
|
||||||
"kvm.enable_virt_at_load=0"
|
|
||||||
];
|
|
||||||
|
|
||||||
initrd = {
|
|
||||||
systemd.enable = true;
|
|
||||||
kernelModules = [];
|
|
||||||
verbose = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
consoleLogLevel = 0;
|
|
||||||
};
|
|
||||||
hardware.amdgpu.initrd.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
../../packages/python/default.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
myConfig,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
# ../../packages/quickshell/default.nix
|
|
||||||
../../packages/hyprland/default.nix
|
|
||||||
../../packages/sunshine/default.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
imports = [
|
|
||||||
../../packages/python/default.nix
|
|
||||||
];
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
p7zip
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
../../packages/steam/default.nix
|
|
||||||
]
|
|
||||||
++ lib.optionals (myConfig.nixos.enableSteamOS == true)
|
|
||||||
[
|
|
||||||
../../packages/steam/jovian.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# file: configuration.nix
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
sources = import ./nix/sources.nix;
|
|
||||||
lanzaboote = import sources.lanzaboote;
|
|
||||||
in {
|
|
||||||
imports = [lanzaboote.nixosModules.lanzaboote];
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
# For debugging and troubleshooting Secure Boot.
|
|
||||||
pkgs.sbctl
|
|
||||||
];
|
|
||||||
|
|
||||||
# Lanzaboote currently replaces the systemd-boot module.
|
|
||||||
# This setting is usually set to true in configuration.nix
|
|
||||||
# generated at installation time. So we force it to false
|
|
||||||
# for now.
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
||||||
|
|
||||||
boot.lanzaboote = {
|
|
||||||
enable = true;
|
|
||||||
pkiBundle = "/var/lib/sbctl";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
services.greetd = {
|
|
||||||
enable = true;
|
|
||||||
settings.default_session = {
|
|
||||||
user = lib.mkOverride 10 "${myConfig.essentials.Username}";
|
|
||||||
command = lib.mkOverride 10 "Hyprland";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
# ../../packages/moondeck-buddy/appimage.nix
|
|
||||||
../../packages/sunshine/default.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
imports = [
|
|
||||||
# ./lanzaboote.nix
|
|
||||||
];
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
niv
|
|
||||||
sbctl
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
# services.udev.extraRules = ''
|
|
||||||
# SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="0616", ATTR{power/wakeup}="enabled"
|
|
||||||
#
|
|
||||||
# '';
|
|
||||||
services.udev.packages = with pkgs; [
|
|
||||||
game-devices-udev-rules
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
../packages/nvim/default.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
imports = [
|
|
||||||
../../packages/firefox/home.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
heroic
|
|
||||||
# fcitx5
|
|
||||||
# fcitx5-mozc-ut
|
|
||||||
# kdePackages.fcitx5-configtool
|
|
||||||
solaar
|
|
||||||
parted
|
|
||||||
edk2-uefi-shell
|
|
||||||
libreoffice
|
|
||||||
];
|
|
||||||
services.easyeffects = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
inputs.illogical-impulse.homeManagerModules.default
|
|
||||||
../../packages/fonts/home.nix
|
|
||||||
];
|
|
||||||
programs.illogical-impulse.enable = true;
|
|
||||||
programs.illogical-impulse.settings = {
|
|
||||||
hyprland.useNixForConf = false;
|
|
||||||
simpleStarship.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# wayland.windowManager.hyprland = {
|
|
||||||
# settings = {
|
|
||||||
# monitor = lib.mkForce [
|
|
||||||
# "DP-1, highres@180,0x1080,1,bitdepth,10,cm,hdr,sdrbrightness,1.4,sdrsaturation,0.98"
|
|
||||||
# "DP-2, highres@highrr,760x0,1"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# programs.illogical-impulse.settings.simpleStarship.enable = true;
|
|
||||||
home.packages = [
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
# ../../packages/moondeck-buddy/appimage.nix
|
|
||||||
../../packages/sunshine/default.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
../../packages/fish/home.nix
|
|
||||||
../../packages/kitty/home.nix
|
|
||||||
../../packages/neovim/home.nix
|
|
||||||
# ../../packages/starship/home.nix
|
|
||||||
../../packages/fastfetch/home.nix
|
|
||||||
../../packages/zsh/home.nix
|
|
||||||
../../packages/zoxide/home.nix
|
|
||||||
../../packages/fonts/home.nix
|
|
||||||
|
|
||||||
../../packages/git/home.nix
|
|
||||||
|
|
||||||
../../packages/btop/home.nix
|
|
||||||
../../packages/eza/home.nix
|
|
||||||
|
|
||||||
../../packages/cloudflared/home.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
../system/firefox/default.nix
|
||||||
|
../system/astal/default.nix
|
||||||
|
../system/hyprland/default.nix
|
||||||
|
../system/fonts/default.nix
|
||||||
|
../system/cursor/default.nix
|
||||||
|
../system/development/default.nix
|
||||||
|
../system/theme/default.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
../packages/zsh/default.nix
|
||||||
|
../packages/kitty/default.nix
|
||||||
|
../packages/fastfetch/default.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
../packages/hyprland/default.nix
|
||||||
|
../packages/waybar/default.nix
|
||||||
|
../packages/ags/default.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
"lanzaboote": {
|
|
||||||
"branch": "master",
|
|
||||||
"description": "Secure Boot for NixOS [maintainers=@blitz @raitobezarius @nikstur]",
|
|
||||||
"homepage": "",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "lanzaboote",
|
|
||||||
"rev": "v0.4.2",
|
|
||||||
"sha256": "0xc1wawnb0297h5khxblmf9pd1fry950xkcm7mwlck19s2906h80",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/nix-community/lanzaboote/archive/v0.4.2.tar.gz",
|
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
|
|
||||||
"version": "0.4.2"
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"branch": "nixos-unstable",
|
|
||||||
"description": "Nix Packages collection",
|
|
||||||
"homepage": null,
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "6c43a3495a11e261e5f41e5d7eda2d71dae1b2fe",
|
|
||||||
"sha256": "16f329z831bq7l3wn1dfvbkh95l2gcggdwn6rk3cisdmv2aa3189",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/6c43a3495a11e261e5f41e5d7eda2d71dae1b2fe.tar.gz",
|
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-198
@@ -1,198 +0,0 @@
|
|||||||
# This file has been generated by Niv.
|
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
#
|
|
||||||
# The fetchers. fetch_<type> fetches specs of type <type>.
|
|
||||||
#
|
|
||||||
|
|
||||||
fetch_file = pkgs: name: spec:
|
|
||||||
let
|
|
||||||
name' = sanitizeName name + "-src";
|
|
||||||
in
|
|
||||||
if spec.builtin or true then
|
|
||||||
builtins_fetchurl { inherit (spec) url sha256; name = name'; }
|
|
||||||
else
|
|
||||||
pkgs.fetchurl { inherit (spec) url sha256; name = name'; };
|
|
||||||
|
|
||||||
fetch_tarball = pkgs: name: spec:
|
|
||||||
let
|
|
||||||
name' = sanitizeName name + "-src";
|
|
||||||
in
|
|
||||||
if spec.builtin or true then
|
|
||||||
builtins_fetchTarball { name = name'; inherit (spec) url sha256; }
|
|
||||||
else
|
|
||||||
pkgs.fetchzip { name = name'; inherit (spec) url sha256; };
|
|
||||||
|
|
||||||
fetch_git = name: spec:
|
|
||||||
let
|
|
||||||
ref =
|
|
||||||
spec.ref or (
|
|
||||||
if spec ? branch then "refs/heads/${spec.branch}" else
|
|
||||||
if spec ? tag then "refs/tags/${spec.tag}" else
|
|
||||||
abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!"
|
|
||||||
);
|
|
||||||
submodules = spec.submodules or false;
|
|
||||||
submoduleArg =
|
|
||||||
let
|
|
||||||
nixSupportsSubmodules = builtins.compareVersions builtins.nixVersion "2.4" >= 0;
|
|
||||||
emptyArgWithWarning =
|
|
||||||
if submodules
|
|
||||||
then
|
|
||||||
builtins.trace
|
|
||||||
(
|
|
||||||
"The niv input \"${name}\" uses submodules "
|
|
||||||
+ "but your nix's (${builtins.nixVersion}) builtins.fetchGit "
|
|
||||||
+ "does not support them"
|
|
||||||
)
|
|
||||||
{ }
|
|
||||||
else { };
|
|
||||||
in
|
|
||||||
if nixSupportsSubmodules
|
|
||||||
then { inherit submodules; }
|
|
||||||
else emptyArgWithWarning;
|
|
||||||
in
|
|
||||||
builtins.fetchGit
|
|
||||||
({ url = spec.repo; inherit (spec) rev; inherit ref; } // submoduleArg);
|
|
||||||
|
|
||||||
fetch_local = spec: spec.path;
|
|
||||||
|
|
||||||
fetch_builtin-tarball = name: throw
|
|
||||||
''[${name}] The niv type "builtin-tarball" is deprecated. You should instead use `builtin = true`.
|
|
||||||
$ niv modify ${name} -a type=tarball -a builtin=true'';
|
|
||||||
|
|
||||||
fetch_builtin-url = name: throw
|
|
||||||
''[${name}] The niv type "builtin-url" will soon be deprecated. You should instead use `builtin = true`.
|
|
||||||
$ niv modify ${name} -a type=file -a builtin=true'';
|
|
||||||
|
|
||||||
#
|
|
||||||
# Various helpers
|
|
||||||
#
|
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/83241/files#diff-c6f540a4f3bfa4b0e8b6bafd4cd54e8bR695
|
|
||||||
sanitizeName = name:
|
|
||||||
(
|
|
||||||
concatMapStrings (s: if builtins.isList s then "-" else s)
|
|
||||||
(
|
|
||||||
builtins.split "[^[:alnum:]+._?=-]+"
|
|
||||||
((x: builtins.elemAt (builtins.match "\\.*(.*)" x) 0) name)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
# The set of packages used when specs are fetched using non-builtins.
|
|
||||||
mkPkgs = sources: system:
|
|
||||||
let
|
|
||||||
sourcesNixpkgs =
|
|
||||||
import (builtins_fetchTarball { inherit (sources.nixpkgs) url sha256; }) { inherit system; };
|
|
||||||
hasNixpkgsPath = builtins.any (x: x.prefix == "nixpkgs") builtins.nixPath;
|
|
||||||
hasThisAsNixpkgsPath = <nixpkgs> == ./.;
|
|
||||||
in
|
|
||||||
if builtins.hasAttr "nixpkgs" sources
|
|
||||||
then sourcesNixpkgs
|
|
||||||
else if hasNixpkgsPath && ! hasThisAsNixpkgsPath then
|
|
||||||
import <nixpkgs> { }
|
|
||||||
else
|
|
||||||
abort
|
|
||||||
''
|
|
||||||
Please specify either <nixpkgs> (through -I or NIX_PATH=nixpkgs=...) or
|
|
||||||
add a package called "nixpkgs" to your sources.json.
|
|
||||||
'';
|
|
||||||
|
|
||||||
# The actual fetching function.
|
|
||||||
fetch = pkgs: name: spec:
|
|
||||||
|
|
||||||
if ! builtins.hasAttr "type" spec then
|
|
||||||
abort "ERROR: niv spec ${name} does not have a 'type' attribute"
|
|
||||||
else if spec.type == "file" then fetch_file pkgs name spec
|
|
||||||
else if spec.type == "tarball" then fetch_tarball pkgs name spec
|
|
||||||
else if spec.type == "git" then fetch_git name spec
|
|
||||||
else if spec.type == "local" then fetch_local spec
|
|
||||||
else if spec.type == "builtin-tarball" then fetch_builtin-tarball name
|
|
||||||
else if spec.type == "builtin-url" then fetch_builtin-url name
|
|
||||||
else
|
|
||||||
abort "ERROR: niv spec ${name} has unknown type ${builtins.toJSON spec.type}";
|
|
||||||
|
|
||||||
# If the environment variable NIV_OVERRIDE_${name} is set, then use
|
|
||||||
# the path directly as opposed to the fetched source.
|
|
||||||
replace = name: drv:
|
|
||||||
let
|
|
||||||
saneName = stringAsChars (c: if (builtins.match "[a-zA-Z0-9]" c) == null then "_" else c) name;
|
|
||||||
ersatz = builtins.getEnv "NIV_OVERRIDE_${saneName}";
|
|
||||||
in
|
|
||||||
if ersatz == "" then drv else
|
|
||||||
# this turns the string into an actual Nix path (for both absolute and
|
|
||||||
# relative paths)
|
|
||||||
if builtins.substring 0 1 ersatz == "/" then /. + ersatz else /. + builtins.getEnv "PWD" + "/${ersatz}";
|
|
||||||
|
|
||||||
# Ports of functions for older nix versions
|
|
||||||
|
|
||||||
# a Nix version of mapAttrs if the built-in doesn't exist
|
|
||||||
mapAttrs = builtins.mapAttrs or (
|
|
||||||
f: set: with builtins;
|
|
||||||
listToAttrs (map (attr: { name = attr; value = f attr set.${attr}; }) (attrNames set))
|
|
||||||
);
|
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/0258808f5744ca980b9a1f24fe0b1e6f0fecee9c/lib/lists.nix#L295
|
|
||||||
range = first: last: if first > last then [ ] else builtins.genList (n: first + n) (last - first + 1);
|
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/0258808f5744ca980b9a1f24fe0b1e6f0fecee9c/lib/strings.nix#L257
|
|
||||||
stringToCharacters = s: map (p: builtins.substring p 1 s) (range 0 (builtins.stringLength s - 1));
|
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/0258808f5744ca980b9a1f24fe0b1e6f0fecee9c/lib/strings.nix#L269
|
|
||||||
stringAsChars = f: s: concatStrings (map f (stringToCharacters s));
|
|
||||||
concatMapStrings = f: list: concatStrings (map f list);
|
|
||||||
concatStrings = builtins.concatStringsSep "";
|
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/8a9f58a375c401b96da862d969f66429def1d118/lib/attrsets.nix#L331
|
|
||||||
optionalAttrs = cond: as: if cond then as else { };
|
|
||||||
|
|
||||||
# fetchTarball version that is compatible between all the versions of Nix
|
|
||||||
builtins_fetchTarball = { url, name ? null, sha256 }@attrs:
|
|
||||||
let
|
|
||||||
inherit (builtins) lessThan nixVersion fetchTarball;
|
|
||||||
in
|
|
||||||
if lessThan nixVersion "1.12" then
|
|
||||||
fetchTarball ({ inherit url; } // (optionalAttrs (name != null) { inherit name; }))
|
|
||||||
else
|
|
||||||
fetchTarball attrs;
|
|
||||||
|
|
||||||
# fetchurl version that is compatible between all the versions of Nix
|
|
||||||
builtins_fetchurl = { url, name ? null, sha256 }@attrs:
|
|
||||||
let
|
|
||||||
inherit (builtins) lessThan nixVersion fetchurl;
|
|
||||||
in
|
|
||||||
if lessThan nixVersion "1.12" then
|
|
||||||
fetchurl ({ inherit url; } // (optionalAttrs (name != null) { inherit name; }))
|
|
||||||
else
|
|
||||||
fetchurl attrs;
|
|
||||||
|
|
||||||
# Create the final "sources" from the config
|
|
||||||
mkSources = config:
|
|
||||||
mapAttrs
|
|
||||||
(
|
|
||||||
name: spec:
|
|
||||||
if builtins.hasAttr "outPath" spec
|
|
||||||
then
|
|
||||||
abort
|
|
||||||
"The values in sources.json should not have an 'outPath' attribute"
|
|
||||||
else
|
|
||||||
spec // { outPath = replace name (fetch config.pkgs name spec); }
|
|
||||||
)
|
|
||||||
config.sources;
|
|
||||||
|
|
||||||
# The "config" used by the fetchers
|
|
||||||
mkConfig =
|
|
||||||
{ sourcesFile ? if builtins.pathExists ./sources.json then ./sources.json else null
|
|
||||||
, sources ? if sourcesFile == null then { } else builtins.fromJSON (builtins.readFile sourcesFile)
|
|
||||||
, system ? builtins.currentSystem
|
|
||||||
, pkgs ? mkPkgs sources system
|
|
||||||
}: rec {
|
|
||||||
# The sources, i.e. the attribute set of spec name to spec
|
|
||||||
inherit sources;
|
|
||||||
|
|
||||||
# The "pkgs" (evaluated nixpkgs) to use for e.g. non-builtin fetchers
|
|
||||||
inherit pkgs;
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
mkSources (mkConfig { }) // { __functor = _: settings: mkSources (mkConfig settings); }
|
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
{ config, pkgs, inputs, ... }: {
|
||||||
|
imports =
|
||||||
|
[ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../modules/system.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
# Enable networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Enable bluetooth
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
services.blueman.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
|
LC_NAME = "en_US.UTF-8";
|
||||||
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "en_US.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_US.UTF-8"; LC_TIME = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users = {
|
||||||
|
defaultUserShell = pkgs.bash;
|
||||||
|
users.biscuit = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Biscuit";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
packages = with pkgs; [];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# List packages installed in system profile.
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wl-clipboard
|
||||||
|
vim # Default editor
|
||||||
|
wget
|
||||||
|
git
|
||||||
|
home-manager
|
||||||
|
zsh
|
||||||
|
p7zip
|
||||||
|
btop
|
||||||
|
libnotify
|
||||||
|
astal.apps
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Enable non-bash shell
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
### ----------------------------------------
|
||||||
|
### DESKTOP START
|
||||||
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
|
hardware = {
|
||||||
|
# pulseaudio.enable = true;
|
||||||
|
graphics.enable = true;
|
||||||
|
nvidia.modesetting.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
### DESKTOP END
|
||||||
|
### ----------------------------------------
|
||||||
|
|
||||||
|
# Enable experimental features
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
#nixpkgs = {
|
||||||
|
# overlays = [
|
||||||
|
# (final: prev: {
|
||||||
|
# nvchad = inputs.nvchad4nix.packages.${pkgs.system}.nvchad;
|
||||||
|
#})
|
||||||
|
#];
|
||||||
|
#};
|
||||||
|
# System state version
|
||||||
|
system.stateVersion = "24.11"; # Ensure this matches your NixOS version
|
||||||
|
}
|
||||||
|
|
||||||
@@ -8,30 +8,24 @@
|
|||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/9f701bae-3392-4927-b27d-a905dd67edab";
|
{ device = "/dev/disk/by-uuid/8552e23a-af9f-4af8-947f-9ea6ff1e7195";
|
||||||
fsType = "btrfs";
|
fsType = "ext4";
|
||||||
options = [ "subvol=@" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/894C-F998";
|
{ device = "/dev/disk/by-uuid/00BB-80E9";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/disk/by-uuid/780aa81f-c4d6-478b-9c51-2d60362fdb07";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/b02ef55c-4caf-4a24-a6a2-fb8001eafe22"; }
|
[ { device = "/dev/disk/by-uuid/2a916b88-8039-481b-9c30-4edd0f329eb3"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
@@ -39,9 +33,9 @@
|
|||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp11s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.wlp10s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules/
|
||||||
|
@girs/
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { App } from "astal/gtk3"
|
||||||
|
import style from "./style.scss"
|
||||||
|
import Bar from "./widget/Bar"
|
||||||
|
|
||||||
|
App.start({
|
||||||
|
css: style,
|
||||||
|
instanceName: "js",
|
||||||
|
requestHandler(request, res) {
|
||||||
|
print(request)
|
||||||
|
res("ok")
|
||||||
|
},
|
||||||
|
main: () => App.get_monitors().map(Bar),
|
||||||
|
})
|
||||||
Vendored
+21
@@ -0,0 +1,21 @@
|
|||||||
|
declare const SRC: string
|
||||||
|
|
||||||
|
declare module "inline:*" {
|
||||||
|
const content: string
|
||||||
|
export default content
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module "*.scss" {
|
||||||
|
const content: string
|
||||||
|
export default content
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module "*.blp" {
|
||||||
|
const content: string
|
||||||
|
export default content
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module "*.css" {
|
||||||
|
const content: string
|
||||||
|
export default content
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "astal-shell",
|
||||||
|
"dependencies": {
|
||||||
|
"astal": "/home/biscuit/.local/share/ags"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,107 @@
|
|||||||
|
@use "sass:color";
|
||||||
|
|
||||||
|
$bg: #212223;
|
||||||
|
$fg: #f1f1f1;
|
||||||
|
$accent: #378DF7;
|
||||||
|
$radius: 7px;
|
||||||
|
|
||||||
|
window.Bar {
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: $bg;
|
||||||
|
color: $fg;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
label {
|
||||||
|
margin: 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Workspaces {
|
||||||
|
button {
|
||||||
|
all: unset;
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
|
&:hover label {
|
||||||
|
background-color: color.adjust($fg, $alpha: -0.84);
|
||||||
|
border-color: color.adjust($accent, $alpha: -0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active label {
|
||||||
|
background-color: color.adjust($fg, $alpha: -0.8)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
transition: 200ms;
|
||||||
|
padding: 0 8px;
|
||||||
|
margin: 2px;
|
||||||
|
border-radius: $radius;
|
||||||
|
border: 1pt solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focused label {
|
||||||
|
color: $accent;
|
||||||
|
border-color: $accent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.SysTray {
|
||||||
|
margin-right: 8px;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.FocusedClient {
|
||||||
|
color: $accent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Media .Cover {
|
||||||
|
min-height: 1.2em;
|
||||||
|
min-width: 1.2em;
|
||||||
|
border-radius: $radius;
|
||||||
|
background-position: center;
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Battery label {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.AudioSlider {
|
||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
icon {
|
||||||
|
margin-right: .6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
& {
|
||||||
|
margin: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
trough {
|
||||||
|
background-color: color.adjust($fg, $alpha: -0.8);
|
||||||
|
border-radius: $radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
highlight {
|
||||||
|
background-color: $accent;
|
||||||
|
min-height: .8em;
|
||||||
|
border-radius: $radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
slider {
|
||||||
|
background-color: $fg;
|
||||||
|
border-radius: $radius;
|
||||||
|
min-height: 1em;
|
||||||
|
min-width: 1em;
|
||||||
|
margin: -.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"strict": true,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "ES2022",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
// "checkJs": true,
|
||||||
|
// "allowJs": true,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
"jsxImportSource": "astal/gtk3",
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,173 @@
|
|||||||
|
import { App } from "astal/gtk3"
|
||||||
|
import { Variable, GLib, bind } from "astal"
|
||||||
|
import { Astal, Gtk, Gdk } from "astal/gtk3"
|
||||||
|
import Hyprland from "gi://AstalHyprland"
|
||||||
|
import Mpris from "gi://AstalMpris"
|
||||||
|
import Battery from "gi://AstalBattery"
|
||||||
|
import Wp from "gi://AstalWp"
|
||||||
|
import Network from "gi://AstalNetwork"
|
||||||
|
import Tray from "gi://AstalTray"
|
||||||
|
|
||||||
|
function SysTray() {
|
||||||
|
const tray = Tray.get_default()
|
||||||
|
|
||||||
|
return <box className="SysTray">
|
||||||
|
{bind(tray, "items").as(items => items.map(item => (
|
||||||
|
<menubutton
|
||||||
|
tooltipMarkup={bind(item, "tooltipMarkup")}
|
||||||
|
usePopover={false}
|
||||||
|
actionGroup={bind(item, "actionGroup").as(ag => ["dbusmenu", ag])}
|
||||||
|
menuModel={bind(item, "menuModel")}>
|
||||||
|
<icon gicon={bind(item, "gicon")} />
|
||||||
|
</menubutton>
|
||||||
|
)))}
|
||||||
|
</box>
|
||||||
|
}
|
||||||
|
|
||||||
|
function Wifi() {
|
||||||
|
const network = Network.get_default()
|
||||||
|
const wifi = bind(network, "wifi")
|
||||||
|
|
||||||
|
return <box visible={wifi.as(Boolean)}>
|
||||||
|
{wifi.as(wifi => wifi && (
|
||||||
|
<icon
|
||||||
|
tooltipText={bind(wifi, "ssid").as(String)}
|
||||||
|
className="Wifi"
|
||||||
|
icon={bind(wifi, "iconName")}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</box>
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function AudioSlider() {
|
||||||
|
const speaker = Wp.get_default()?.audio.defaultSpeaker!
|
||||||
|
|
||||||
|
return <box className="AudioSlider" css="min-width: 140px">
|
||||||
|
<icon icon={bind(speaker, "volumeIcon")} />
|
||||||
|
<slider
|
||||||
|
hexpand
|
||||||
|
onDragged={({ value }) => speaker.volume = value}
|
||||||
|
value={bind(speaker, "volume")}
|
||||||
|
/>
|
||||||
|
</box>
|
||||||
|
}
|
||||||
|
|
||||||
|
function BatteryLevel() {
|
||||||
|
const bat = Battery.get_default()
|
||||||
|
|
||||||
|
return <box className="Battery"
|
||||||
|
visible={bind(bat, "isPresent")}>
|
||||||
|
<icon icon={bind(bat, "batteryIconName")} />
|
||||||
|
<label label={bind(bat, "percentage").as(p =>
|
||||||
|
`${Math.floor(p * 100)} %`
|
||||||
|
)} />
|
||||||
|
</box>
|
||||||
|
}
|
||||||
|
|
||||||
|
function Media() {
|
||||||
|
const mpris = Mpris.get_default()
|
||||||
|
|
||||||
|
return <box className="Media">
|
||||||
|
{bind(mpris, "players").as(ps => ps[0] ? (
|
||||||
|
<box>
|
||||||
|
<box
|
||||||
|
className="Cover"
|
||||||
|
valign={Gtk.Align.CENTER}
|
||||||
|
css={bind(ps[0], "coverArt").as(cover =>
|
||||||
|
`background-image: url('${cover}');`
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
<label
|
||||||
|
label={bind(ps[0], "metadata").as(() =>
|
||||||
|
`${ps[0].title} - ${ps[0].artist}`
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</box>
|
||||||
|
) : (
|
||||||
|
<label label="Biscuit" />
|
||||||
|
))}
|
||||||
|
</box>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function Workspaces() {
|
||||||
|
const hypr = Hyprland.get_default();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<box className="Workspaces">
|
||||||
|
{bind(hypr, "focusedWorkspace").as((fw) => {
|
||||||
|
if (!fw) return null;
|
||||||
|
|
||||||
|
// Determine the current chunk of 5 visible workspace buttons
|
||||||
|
const currentChunkStart = Math.floor((fw.id - 1) / 5) * 5 + 1;
|
||||||
|
const visibleIds = Array.from({ length: 5 }, (_, i) => currentChunkStart + i);
|
||||||
|
|
||||||
|
return visibleIds.map((id) => {
|
||||||
|
// Try to get the real workspace, fall back to a dummy one if it doesn't exist
|
||||||
|
const ws =
|
||||||
|
hypr.workspaces.find((w) => w.id === id) ??
|
||||||
|
Hyprland.Workspace.dummy(id, null);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<button
|
||||||
|
className={fw.id === id ? "focused" : ""}
|
||||||
|
onClick={() => ws.focus()}
|
||||||
|
>
|
||||||
|
{id}
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
})}
|
||||||
|
</box>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function FocusedClient() {
|
||||||
|
const hypr = Hyprland.get_default()
|
||||||
|
const focused = bind(hypr, "focusedClient")
|
||||||
|
|
||||||
|
return <box
|
||||||
|
className="Focused"
|
||||||
|
visible={focused.as(Boolean)}>
|
||||||
|
{focused.as(client => (
|
||||||
|
client && <label label={bind(client, "title").as(String)} />
|
||||||
|
))}
|
||||||
|
</box>
|
||||||
|
}
|
||||||
|
|
||||||
|
function Time({ format = "%H:%M %a %b %e" }) {
|
||||||
|
const time = Variable<string>("").poll(1000, () =>
|
||||||
|
GLib.DateTime.new_now_local().format(format)!)
|
||||||
|
|
||||||
|
return <label
|
||||||
|
className="Time"
|
||||||
|
onDestroy={() => time.drop()}
|
||||||
|
label={time()}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Bar(monitor: Gdk.Monitor) {
|
||||||
|
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor
|
||||||
|
|
||||||
|
return <window
|
||||||
|
className="Bar"
|
||||||
|
gdkmonitor={monitor}
|
||||||
|
exclusivity={Astal.Exclusivity.EXCLUSIVE}
|
||||||
|
anchor={TOP | LEFT | RIGHT}>
|
||||||
|
<centerbox>
|
||||||
|
<box hexpand halign={Gtk.Align.START}>
|
||||||
|
<Time />
|
||||||
|
</box>
|
||||||
|
<box>
|
||||||
|
<Workspaces />
|
||||||
|
</box>
|
||||||
|
<box hexpand halign={Gtk.Align.END} >
|
||||||
|
<SysTray />
|
||||||
|
<Wifi />
|
||||||
|
<AudioSlider />
|
||||||
|
<BatteryLevel />
|
||||||
|
</box>
|
||||||
|
</centerbox>
|
||||||
|
</window>
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# add the home manager module
|
||||||
|
imports = [
|
||||||
|
inputs.ags.homeManagerModules.default
|
||||||
|
# inputs.astal.homeManagerModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
# inputs.astal.packages.${system}.default
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.ags = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# symlink to ~/.config/ags
|
||||||
|
configDir = ./custom;
|
||||||
|
|
||||||
|
# additional packages to add to gjs's runtime
|
||||||
|
extraPackages = with inputs.ags.packages.${pkgs.system}; [
|
||||||
|
apps
|
||||||
|
auth
|
||||||
|
battery
|
||||||
|
bluetooth
|
||||||
|
hyprland
|
||||||
|
mpris
|
||||||
|
network
|
||||||
|
notifd
|
||||||
|
powerprofiles
|
||||||
|
tray
|
||||||
|
wireplumber
|
||||||
|
|
||||||
|
pkgs.fzf
|
||||||
|
pkgs.dart-sass
|
||||||
|
pkgs.esbuild
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# programs.astal = {
|
||||||
|
# enable = true;
|
||||||
|
# };
|
||||||
|
}
|
||||||
Submodule
+1
Submodule packages/ags/epik-shell added at 9002206c8b
@@ -1,5 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
bibata-cursors
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
programs.btop = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
vim_keys = true;
|
|
||||||
theme_background = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
cloudflared
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
programs.eza = {
|
|
||||||
enable = true;
|
|
||||||
git = true;
|
|
||||||
colors = "auto";
|
|
||||||
icons = "auto";
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{ ... }: {
|
||||||
|
programs.fastfetch.enable = true;
|
||||||
|
}
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
{
|
|
||||||
programs.fastfetch = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
logo = {
|
|
||||||
padding = {
|
|
||||||
top = 2;
|
|
||||||
left = 1;
|
|
||||||
right = 2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
display = {
|
|
||||||
separator = " ";
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
# Title
|
|
||||||
{
|
|
||||||
type = "title";
|
|
||||||
format = "{#1}╭───────────── {#}{user-name-colored}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# System Information Header
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}System Information";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "os";
|
|
||||||
key = "│ {#keys} OS";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "kernel";
|
|
||||||
key = "│ {#keys} Kernel";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "uptime";
|
|
||||||
key = "│ {#keys} Uptime";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "packages";
|
|
||||||
key = "│ {#keys} Packages";
|
|
||||||
format = "{all}";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Desktop Environment
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}Desktop Environment";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "de";
|
|
||||||
key = "│ {#keys} DE";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "wm";
|
|
||||||
key = "│ {#keys} WM";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "wmtheme";
|
|
||||||
key = "│ {#keys} Theme";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "display";
|
|
||||||
key = "│ {#keys} Resolution";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "shell";
|
|
||||||
key = "│ {#keys} Shell";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "terminalfont";
|
|
||||||
key = "│ {#keys} Font";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Hardware Information
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│ {#}Hardware Information";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "cpu";
|
|
||||||
key = "│ {#keys} CPU";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "gpu";
|
|
||||||
key = "│ {#keys} GPU";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "memory";
|
|
||||||
key = "│ {#keys} Memory";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "disk";
|
|
||||||
key = "│ {#keys} Disk (/)";
|
|
||||||
folders = "/";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}│";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Colors
|
|
||||||
{
|
|
||||||
type = "colors";
|
|
||||||
key = "│";
|
|
||||||
symbol = "circle";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Footer
|
|
||||||
{
|
|
||||||
type = "custom";
|
|
||||||
format = "{#1}╰───────────────────────────────╯";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
{
|
|
||||||
programs.firefox = {
|
|
||||||
enable = true;
|
|
||||||
languagePacks = [
|
|
||||||
"en-US"
|
|
||||||
];
|
|
||||||
profiles = {
|
|
||||||
hakase = {
|
|
||||||
search.force = true;
|
|
||||||
isDefault = true;
|
|
||||||
search.default = "ddg";
|
|
||||||
settings = {
|
|
||||||
"browser.contentblocking.category" = "strict";
|
|
||||||
"extensions.pocket.enabled" = false;
|
|
||||||
"extensions.screenshots.disabled" = true;
|
|
||||||
"browser.topsites.contile.enabled" = false;
|
|
||||||
"browser.formfill.enable" = false;
|
|
||||||
"browser.search.suggest.enabled" = false;
|
|
||||||
"browser.search.suggest.enabled.private" = false;
|
|
||||||
"browser.urlbar.suggest.searches" = false;
|
|
||||||
"browser.urlbar.showSearchSuggestionsFirst" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.snippets" = false;
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
||||||
"browser.newtabpage.activity-stream.system.showSponsored" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
||||||
"browser.startup.homepage" = "https://dash.sakamoto.dev";
|
|
||||||
"browser.newtabpage.pinned" = [
|
|
||||||
{
|
|
||||||
title = "Dashboard";
|
|
||||||
url = "https://dash.sakamoto.dev";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
bookmarks = {
|
|
||||||
force = true;
|
|
||||||
settings = [
|
|
||||||
{
|
|
||||||
toolbar = true;
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Home Manager";
|
|
||||||
url = "https://mynixos.com/home-manager/options/programs";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "YouTube";
|
|
||||||
url = "https://youtube.com";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
policies = {
|
|
||||||
DisableTelemetry = true;
|
|
||||||
DisableFirefoxStudies = true;
|
|
||||||
EnableTrackingProtection = {
|
|
||||||
Value = true;
|
|
||||||
Locked = true;
|
|
||||||
Cryptomining = true;
|
|
||||||
Fingerprinting = true;
|
|
||||||
};
|
|
||||||
DisablePocket = true;
|
|
||||||
DisableFirefoxAccounts = true;
|
|
||||||
DisableAccounts = true;
|
|
||||||
DisableFirefoxScreenshots = true;
|
|
||||||
OverrideFirstRunPage = "";
|
|
||||||
OverridePostUpdatePage = "";
|
|
||||||
DontCheckDefaultBrowser = true;
|
|
||||||
DisplayBookmarksToolbar = "always"; # alternatives: "always" or "newtab"
|
|
||||||
DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on"
|
|
||||||
SearchBar = "unified"; # alternative: "separate"
|
|
||||||
|
|
||||||
/*
|
|
||||||
---- EXTENSIONS ----
|
|
||||||
*/
|
|
||||||
# Check about:support for extension/add-on ID strings.
|
|
||||||
# Valid strings for installation_mode are "allowed", "blocked",
|
|
||||||
# "force_installed" and "normal_installed".
|
|
||||||
ExtensionSettings = {
|
|
||||||
"*".installation_mode = "allowed";
|
|
||||||
"uBlock0@raymondhill.net" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4493940/bitwarden_password_manager-2025.5.0.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
"tridactyl.vim@cmcaine.co.uk" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4405615/tridactyl_vim-1.24.2.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
# Privacy Badger:
|
|
||||||
# "jid1-MnnxcxisBPnSXQ@jetpack" = {
|
|
||||||
# install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
|
||||||
# installation_mode = "force_installed";
|
|
||||||
# };
|
|
||||||
# 1Password:
|
|
||||||
# "{d634138d-c276-4fc8-924b-40a0ea21d284}" = {
|
|
||||||
# install_url = "https://addons.mozilla.org/firefox/downloads/latest/1password-x-password-manager/latest.xpi";
|
|
||||||
# installation_mode = "force_installed";
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.fish = {
|
|
||||||
enable = true;
|
|
||||||
interactiveShellInit = ''
|
|
||||||
set fish_greeting
|
|
||||||
fish_vi_key_bindings
|
|
||||||
zoxide init fish | source
|
|
||||||
|
|
||||||
'';
|
|
||||||
shellAliases = myConfig.general.Terminal.aliases;
|
|
||||||
|
|
||||||
plugins = with pkgs.fishPlugins; [
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
fonts = {
|
|
||||||
fontconfig.enable = true;
|
|
||||||
};
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
nerd-fonts.jetbrains-mono
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{myConfig, ...}: {
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = {
|
|
||||||
user.name = "${myConfig.nixos.Git.user}";
|
|
||||||
user.email = "${myConfig.nixos.Git.email}";
|
|
||||||
init.defaultBranch = "${myConfig.nixos.Git.defaultBranch}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
{...}: {
|
|
||||||
services.hypridle = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
general = {
|
|
||||||
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
|
||||||
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
|
||||||
after_sleep_cmd = "hyprctl dispatch dpms on && agu"; # avoid needing to press a key twice to turn on the display.
|
|
||||||
};
|
|
||||||
|
|
||||||
listener = [
|
|
||||||
# {
|
|
||||||
# timeout = 150;
|
|
||||||
# on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
|
||||||
# on-resume = "brightnessctl -r"; # restore monitor backlight.
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# timeout = 150;
|
|
||||||
# on-timeout = "brightnessctl -sd rgb:kbd_backlight set 0"; # turn off keyboard backlight.
|
|
||||||
# on-resume = "brightnessctl -rd rgb:kbd_backlight"; # turn on keyboard backlight.
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# timeout = 300;
|
|
||||||
# on-timeout = "loginctl lock-session"; # lock screen when timeout has passed.
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# timeout = 330;
|
|
||||||
# on-timeout = "hyprctl dispatch dpms off"; # screen off after 5.5min.
|
|
||||||
# on-resume = "hyprctl dispatch dpms on && brightnessctl -r"; # screen on and restore brightness on resume.
|
|
||||||
# }
|
|
||||||
{
|
|
||||||
timeout = 500;
|
|
||||||
on-timeout = "systemctl suspend"; # suspend PC after 30min.
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
bezier = [
|
|
||||||
"linear, 0, 0, 1, 1"
|
|
||||||
"md3_standard, 0.2, 0, 0, 1"
|
|
||||||
"md3_decel, 0.05, 0.7, 0.1, 1"
|
|
||||||
"md3_accel, 0.3, 0, 0.8, 0.15"
|
|
||||||
"overshot, 0.05, 0.9, 0.1, 1.1"
|
|
||||||
"crazyshot, 0.1, 1.5, 0.76, 0.92"
|
|
||||||
"hyprnostretch, 0.05, 0.9, 0.1, 1.0"
|
|
||||||
"menu_decel, 0.1, 1, 0, 1"
|
|
||||||
"menu_accel, 0.38, 0.04, 1, 0.07"
|
|
||||||
"easeInOutCirc, 0.85, 0, 0.15, 1"
|
|
||||||
"easeOutCirc, 0, 0.55, 0.45, 1"
|
|
||||||
"easeOutExpo, 0.16, 1, 0.3, 1"
|
|
||||||
"softAcDecel, 0.26, 0.26, 0.15, 1"
|
|
||||||
"md2, 0.4, 0, 0.2, 1"
|
|
||||||
];
|
|
||||||
|
|
||||||
animation = [
|
|
||||||
"windows, 1, 3, md3_decel, popin 60%"
|
|
||||||
"windowsIn, 1, 3, md3_decel, popin 60%"
|
|
||||||
"windowsOut, 1, 3, md3_accel, popin 60%"
|
|
||||||
"border, 1, 10, default"
|
|
||||||
"fade, 1, 3, md3_decel"
|
|
||||||
"layersIn, 1, 3, menu_decel, slide"
|
|
||||||
"layersOut, 1, 1.6, menu_accel"
|
|
||||||
"fadeLayersIn, 1, 2, menu_decel"
|
|
||||||
"fadeLayersOut, 1, 0.5, menu_accel"
|
|
||||||
"workspaces, 1, 7, menu_decel, slide"
|
|
||||||
"specialWorkspace, 1, 3, md3_decel, slidevert"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,300 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
exec = [
|
|
||||||
"hyprctl dispatch submap global"
|
|
||||||
];
|
|
||||||
|
|
||||||
submap = [
|
|
||||||
"global"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Shell keybinds
|
|
||||||
bindi = [
|
|
||||||
"$mod, Super_L, global, caelestia:launcher" # bind to `bind` because `bindi` maps to it
|
|
||||||
# Launcher
|
|
||||||
];
|
|
||||||
bindin =
|
|
||||||
[
|
|
||||||
"$mod, catchall, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:272, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:273, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:274, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:275, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:276, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:277, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse_up, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse_down, global, caelestia:launcherInterrupt"
|
|
||||||
|
|
||||||
"$mod, K, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, H, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, J, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, L, global, caelestia:launcherInterrupt"
|
|
||||||
|
|
||||||
"$mod, S, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, G, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, T, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, D, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, Escape, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, PERIOD, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, SPACE, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, E, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, V, global, caelestia:launcherInterrupt"
|
|
||||||
|
|
||||||
"$mod, W, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, Q, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, C, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, Return, global, caelestia:launcherInterrupt"
|
|
||||||
]
|
|
||||||
++ (
|
|
||||||
# Go to workspace group #
|
|
||||||
builtins.concatLists (builtins.genList (
|
|
||||||
i: let
|
|
||||||
ws = i + 1;
|
|
||||||
in [
|
|
||||||
"$mod, ${toString ws}, global, caelestia:launcherInterrupt"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
9)
|
|
||||||
)
|
|
||||||
++ [
|
|
||||||
"$mod, 0, global, caelestia:launcherInterrupt"
|
|
||||||
];
|
|
||||||
bind =
|
|
||||||
[
|
|
||||||
# Misc
|
|
||||||
"Control+Alt, Delete, exec, caelestia:session"
|
|
||||||
"$mod ALT, A, global, caelestia:showall"
|
|
||||||
"$mod ALT, L, global, caelestia:lock"
|
|
||||||
|
|
||||||
"$mod, SPACE, exec, rofi -show drun"
|
|
||||||
|
|
||||||
# Restore lock - these are `bindl` in your original, but `exec` should be fine here.
|
|
||||||
# However, `bindl` is typically for a *release* event. If `caelestia shell -d` is a daemon,
|
|
||||||
# and `caelestia:lock` is a quickshell internal, you might need to reconsider.
|
|
||||||
# For direct translation, they go into `bindl` list.
|
|
||||||
|
|
||||||
# Media - handled by bindl below
|
|
||||||
|
|
||||||
# Apps
|
|
||||||
"$mod, Return, exec, app2unit -- kitty"
|
|
||||||
"$mod, W, exec, app2unit -- firefox"
|
|
||||||
"$mod, E, exec, app2unit -- thunar"
|
|
||||||
"$mod, Q, killactive"
|
|
||||||
"$mod ALT, E, exec, app2unit -- nemo"
|
|
||||||
"Control+Alt, Escape, exec, app2unit -- qps"
|
|
||||||
"Control+Alt, V, exec, app2unit -- pavucontrol"
|
|
||||||
|
|
||||||
# Utilities
|
|
||||||
"$mod SHIFT, S, global, caelestia:screenshotFreeze"
|
|
||||||
"$mod SHIFT ALT, S, global, caelestia:screenshot"
|
|
||||||
"$mod ALT, R, exec, caelestia record -s"
|
|
||||||
"Control+Alt, R, exec, caelestia record"
|
|
||||||
"$mod SHIFT ALT, R, exec, caelestia record -r"
|
|
||||||
"$mod SHIFT, C, exec, hyprpicker -a" # Colour picker
|
|
||||||
|
|
||||||
# Sleep
|
|
||||||
"$mod SHIFT, PRINT, exec, systemctl suspend-then-hibernate"
|
|
||||||
|
|
||||||
# Clipboard and emoji picker
|
|
||||||
"$mod, V, exec, pkill fuzzel || caelestia clipboard"
|
|
||||||
"$mod ALT, V, exec, pkill fuzzel || caelestia clipboard -d"
|
|
||||||
"$mod, Period, exec, pkill fuzzel || caelestia emoji -p"
|
|
||||||
|
|
||||||
# Testing
|
|
||||||
# This is a `bindl` (key release), so move it to `bindl` list below.
|
|
||||||
|
|
||||||
# Window actions
|
|
||||||
"$mod, H, movefocus, l"
|
|
||||||
"$mod, L, movefocus, r"
|
|
||||||
"$mod, K, movefocus, u"
|
|
||||||
"$mod, J, movefocus, d"
|
|
||||||
"$mod SHIFT, H, movewindow, l"
|
|
||||||
"$mod SHIFT, L, movewindow, r"
|
|
||||||
"$mod SHIFT, K, movewindow, u"
|
|
||||||
"$mod SHIFT, J, movewindow, d"
|
|
||||||
"$mod CTRL, Backslash, centerwindow, 1"
|
|
||||||
"$mod CTRL ALT, Backslash, resizeactive, exact 55% 70%"
|
|
||||||
"$mod CTRL ALT, Backslash, centerwindow, 1"
|
|
||||||
"$mod ALT, Backslash, exec, caelestia pip"
|
|
||||||
"$mod, P, pin"
|
|
||||||
"$mod, F, fullscreen, 0"
|
|
||||||
"$mod ALT, F, fullscreen, 1"
|
|
||||||
|
|
||||||
# Special workspace toggles
|
|
||||||
"Control+Shift, Escape, exec, caelestia toggle sysmon"
|
|
||||||
"$mod, Escape, exec, caelestia toggle sysmon"
|
|
||||||
"$mod, M, exec, caelestia toggle music"
|
|
||||||
"$mod, D, exec, caelestia toggle communication"
|
|
||||||
"$mod, R, exec, caelestia toggle todo"
|
|
||||||
|
|
||||||
"$mod, G, togglespecialworkspace, gaming"
|
|
||||||
"$mod SHIFT, G, movetoworkspace, special:gaming"
|
|
||||||
|
|
||||||
"$mod, T, exec, caelestia toggle steam"
|
|
||||||
|
|
||||||
# "$mod, T, togglespecialworkspace, special:steam"
|
|
||||||
# "$mod SHIFT, T, movetoworkspace, special:steam"
|
|
||||||
|
|
||||||
# Toggle special workspace
|
|
||||||
"$mod, S, exec, caelestia toggle specialws"
|
|
||||||
|
|
||||||
# Window groups
|
|
||||||
"$mod, Comma, togglegroup"
|
|
||||||
"$mod SHIFT, Comma, lockactivegroup, toggle"
|
|
||||||
|
|
||||||
# Go to workspace -1/+1 (mouse binds are `bind` for mouse-wheel)
|
|
||||||
"$mod, mouse_down, workspace, -1"
|
|
||||||
"$mod, mouse_up, workspace, +1"
|
|
||||||
|
|
||||||
# Move window to workspace -1/+1
|
|
||||||
"$mod ALT, mouse_down, movetoworkspace, -1"
|
|
||||||
"$mod ALT, mouse_up, movetoworkspace, +1"
|
|
||||||
|
|
||||||
# Move window to/from special workspace
|
|
||||||
"$mod CTRL SHIFT, up, movetoworkspace, special:special"
|
|
||||||
"$mod CTRL SHIFT, down, movetoworkspace, e+0"
|
|
||||||
"$mod ALT, S, movetoworkspace, special:special"
|
|
||||||
]
|
|
||||||
++ (
|
|
||||||
# Go to workspace #
|
|
||||||
let
|
|
||||||
wsaction = "~/.config/hypr/scripts/wsaction.fish";
|
|
||||||
in
|
|
||||||
builtins.concatLists (builtins.genList (
|
|
||||||
i: let
|
|
||||||
ws = i + 1;
|
|
||||||
in [
|
|
||||||
"$mod, ${toString ws}, exec, ${wsaction} workspace ${toString ws}"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
9) # For workspaces 1-9
|
|
||||||
)
|
|
||||||
++ [
|
|
||||||
# "$mod, 0, exec, ${config.wayland.windowManager.hyprland.settings.workspaceRule."0".exec} workspace 10" # Workaround for workspace 0
|
|
||||||
# Re-adding `wsaction` since it's used here.
|
|
||||||
"$mod, 0, exec, ~/.config/hypr/scripts/wsaction.fish workspace 10"
|
|
||||||
]
|
|
||||||
++ (
|
|
||||||
# Go to workspace group #
|
|
||||||
let
|
|
||||||
wsaction = "~/.config/hypr/scripts/wsaction.fish";
|
|
||||||
in
|
|
||||||
builtins.concatLists (builtins.genList (
|
|
||||||
i: let
|
|
||||||
ws = i + 1;
|
|
||||||
in [
|
|
||||||
"Control+$mod, ${toString ws}, exec, ${wsaction} -g workspace ${toString ws}"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
9)
|
|
||||||
)
|
|
||||||
++ [
|
|
||||||
"Control+$mod, 0, exec, ~/.config/hypr/scripts/wsaction.fish -g workspace 10"
|
|
||||||
]
|
|
||||||
++ (
|
|
||||||
# Move window to workspace #
|
|
||||||
let
|
|
||||||
wsaction = "~/.config/hypr/scripts/wsaction.fish";
|
|
||||||
in
|
|
||||||
builtins.concatLists (builtins.genList (
|
|
||||||
i: let
|
|
||||||
ws = i + 1;
|
|
||||||
in [
|
|
||||||
"$mod SHIFT, ${toString ws}, exec, ${wsaction} movetoworkspace ${toString ws}"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
9)
|
|
||||||
)
|
|
||||||
++ [
|
|
||||||
"$mod SHIFT, 0, exec, ~/.config/hypr/scripts/wsaction.fish movetoworkspace 10"
|
|
||||||
]
|
|
||||||
++ (
|
|
||||||
# Move window to workspace group #
|
|
||||||
let
|
|
||||||
wsaction = "~/.config/hypr/scripts/wsaction.fish";
|
|
||||||
in
|
|
||||||
builtins.concatLists (builtins.genList (
|
|
||||||
i: let
|
|
||||||
ws = i + 1;
|
|
||||||
in [
|
|
||||||
"Control+$mod ALT, ${toString ws}, exec, ${wsaction} -g movetoworkspace ${toString ws}"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
9)
|
|
||||||
)
|
|
||||||
++ [
|
|
||||||
"Control+$mod ALT, 0, exec, ~/.config/hypr/scripts/wsaction.fish -g movetoworkspace 10"
|
|
||||||
];
|
|
||||||
|
|
||||||
binde = [
|
|
||||||
"$mod, Minus, splitratio, -0.1"
|
|
||||||
"$mod, Equal, splitratio, 0.1"
|
|
||||||
"Control+$mod, left, workspace, -1"
|
|
||||||
"$mod, Page_Up, workspace, -1"
|
|
||||||
"Control+$mod, right, workspace, +1"
|
|
||||||
"$mod, Page_Down, workspace, +1"
|
|
||||||
"$mod ALT, Page_Up, movetoworkspace, -1"
|
|
||||||
"$mod ALT, Page_Down, movetoworkspace, +1"
|
|
||||||
"Control+$mod SHIFT, right, movetoworkspace, +1"
|
|
||||||
"Control+$mod SHIFT, left, movetoworkspace, -1"
|
|
||||||
"Alt, Tab, cyclenext, activewindow" # `binde` for cycle next
|
|
||||||
"Control+Alt, Tab, changegroupactive, f" # `binde` for change group active
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [
|
|
||||||
"$mod, mouse:272, movewindow"
|
|
||||||
"$mod, Z, movewindow"
|
|
||||||
"$mod, mouse:273, resizewindow"
|
|
||||||
"$mod, X, resizewindow"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindl = [
|
|
||||||
# Restore lock
|
|
||||||
"$mod ALT, L, exec, caelestia shell -d"
|
|
||||||
"$mod ALT, L, global, caelestia:lock" # This is a Hyprland `global` command, not an `exec`
|
|
||||||
|
|
||||||
# Brightness
|
|
||||||
", XF86MonBrightnessUp, global, caelestia:brightnessUp"
|
|
||||||
", XF86MonBrightnessDown, global, caelestia:brightnessDown"
|
|
||||||
|
|
||||||
# Media
|
|
||||||
"Control+$mod, Space, global, caelestia:mediaToggle"
|
|
||||||
", XF86AudioPlay, global, caelestia:mediaToggle"
|
|
||||||
", XF86AudioPause, global, caelestia:mediaToggle"
|
|
||||||
"Control+$mod, Equal, global, caelestia:mediaNext"
|
|
||||||
", XF86AudioNext, global, caelestia:mediaNext"
|
|
||||||
"Control+$mod, Minus, global, caelestia:mediaPrev"
|
|
||||||
", XF86AudioPrev, global, caelestia:mediaPrev"
|
|
||||||
", XF86AudioStop, global, caelestia:mediaStop"
|
|
||||||
|
|
||||||
# Utilities (screenshot is `bindl` in your original)
|
|
||||||
", Print, exec, caelestia screenshot" # Full screen capture > clipboard
|
|
||||||
|
|
||||||
# Volume
|
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
"$mod SHIFT, M, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
|
|
||||||
# Clipboard and emoji picker (alternate paste is `bindl`)
|
|
||||||
"Control+Shift+Alt, V, exec, sleep 0.5s && ydotool type -d 1 \"$(cliphist list | head -1 | cliphist decode)\""
|
|
||||||
|
|
||||||
# Testing
|
|
||||||
"$mod ALT, f12, exec, notify-send -u low -i dialog-information-symbolic 'Test notification' \"Here's a really long message to test truncation and wrapping\\nYou can middle click or flick this notification to dismiss it!\" -a 'Shell' -A \"Test1=I got it!\" -A \"Test2=Another action\""
|
|
||||||
];
|
|
||||||
|
|
||||||
bindel = [
|
|
||||||
# Volume
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 10%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%-"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindr = [
|
|
||||||
# Kill/restart
|
|
||||||
"Control+$mod SHIFT, R, exec, qs -c caelestia kill"
|
|
||||||
"Control+$mod ALT, R, exec, qs -c caelestia kill; caelestia shell -d"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
exec = [
|
|
||||||
"cp -L --no-preserve=mode --update=none ~/.config/hypr/scheme/default.conf ~/.config/hypr/scheme/current.conf"
|
|
||||||
];
|
|
||||||
source = [
|
|
||||||
"~/.config/hypr/scheme/current.conf"
|
|
||||||
];
|
|
||||||
group = {
|
|
||||||
groupbar = {
|
|
||||||
"text_color" = "rgb($onPrimary)";
|
|
||||||
"col.active" = "rgba($primaryd4)";
|
|
||||||
"col.inactive" = "rgba($outlined4)";
|
|
||||||
"col.locked_active" = "rgba($primaryd4)";
|
|
||||||
"col.locked_inactive" = "rgba($secondaryd4)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
misc = {
|
|
||||||
background_color = "rgb($surfaceVariant)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
decoration = {
|
|
||||||
rounding = 10;
|
|
||||||
rounding_power = 2;
|
|
||||||
active_opacity = 1.0;
|
|
||||||
inactive_opacity = 1.0;
|
|
||||||
|
|
||||||
dim_inactive = true;
|
|
||||||
dim_strength = 0.1;
|
|
||||||
dim_special = 0.8;
|
|
||||||
|
|
||||||
shadow = {
|
|
||||||
enabled = true;
|
|
||||||
range = 4;
|
|
||||||
render_power = 3;
|
|
||||||
color = "rgba(1a1a1aee)";
|
|
||||||
};
|
|
||||||
|
|
||||||
blur = {
|
|
||||||
enabled = true;
|
|
||||||
size = 3;
|
|
||||||
passes = 1;
|
|
||||||
vibrancy = 0.1696;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
env = [
|
|
||||||
"HYPRCURSOR_THEME, Bibata-Original-Classic"
|
|
||||||
"HYPRCURSOR_SIZE, 24"
|
|
||||||
|
|
||||||
"QT_QPA_PLATFORMTHEME, qt5ct"
|
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION, 1"
|
|
||||||
"QT_AUTO_SCREEN_SCALE_FACTOR, 1"
|
|
||||||
"XCURSOR_THEME, sweet-rainbow"
|
|
||||||
"XCURSOR_SIZE, 24"
|
|
||||||
|
|
||||||
"GDK_BACKEND, wayland,x11"
|
|
||||||
"QT_QPA_PLATFORM, wayland;xcb"
|
|
||||||
"SDL_VIDEODRIVER, wayland,x11"
|
|
||||||
"CLUTTER_BACKEND, wayland"
|
|
||||||
"ELECTRON_OZONE_PLATFORM_HINT, auto"
|
|
||||||
|
|
||||||
"XDG_CURRENT_DESKTOP, Hyprland"
|
|
||||||
"XDG_SESSION_TYPE, wayland"
|
|
||||||
"XDG_SESSION_DESKTOP, Hyprland"
|
|
||||||
|
|
||||||
"_JAVA_AWT_WM_NONREPARENTING, 1"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
exec-once = [
|
|
||||||
# "[workspace special:communication silent] discord"
|
|
||||||
"[workspace special:steam silent] steam"
|
|
||||||
"[workspace special:preload silent] kitty --single-instance --hold fastfetch"
|
|
||||||
"[workspace special:preload silent] firefox"
|
|
||||||
"[workspace 1] kitty --single-instance --hold -e fish -C fastfetch"
|
|
||||||
|
|
||||||
"hyprctl setcursor Bibata-Modern-Ice 24"
|
|
||||||
|
|
||||||
"solaar -w hide"
|
|
||||||
# "sunshine"
|
|
||||||
# "moondeck-buddy"
|
|
||||||
|
|
||||||
"wl-paste --type text --watch cliphist store"
|
|
||||||
"wl-paste --type image --watch cliphist store"
|
|
||||||
|
|
||||||
"sleep 3 && caelestia shell"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
# ######## Window rules ########
|
|
||||||
windowrule = [
|
|
||||||
"opaque, class:foot|equibop"
|
|
||||||
"center 1, floating:1, xwayland:0"
|
|
||||||
|
|
||||||
# Float
|
|
||||||
"float, class:guifetch"
|
|
||||||
"float, class:yad"
|
|
||||||
"float, class:zenity"
|
|
||||||
"float, class:wev"
|
|
||||||
"float, class:org\\.gnome\\.FileRoller" # Escaped backslash
|
|
||||||
"float, class:file-roller"
|
|
||||||
"float, class:blueman-manager"
|
|
||||||
"float, class:com\\.github\\.GradienceTeam\\.Gradience" # Escaped backslash
|
|
||||||
"float, class:feh"
|
|
||||||
"float, class:imv"
|
|
||||||
"float, class:system-config-printer"
|
|
||||||
"float, class:quickshell"
|
|
||||||
|
|
||||||
# Float, resize and center
|
|
||||||
"float, class:foot, title:nmtui"
|
|
||||||
"size 60% 70%, class:foot, title:nmtui"
|
|
||||||
"center 1, class:foot, title:nmtui"
|
|
||||||
"float, class:org\\.gnome\\.Settings"
|
|
||||||
"size 70% 80%, class:org\\.gnome\\.Settings"
|
|
||||||
"center 1, class:org\\.gnome\\.Settings"
|
|
||||||
"float, class:org\\.pulseaudio\\.pavucontrol|yad-icon-browser"
|
|
||||||
"size 60% 70%, class:org\\.pulseaudio\\.pavucontrol|yad-icon-browser"
|
|
||||||
"center 1, class:org\\.pulseaudio\\.pavucontrol|yad-icon-browser"
|
|
||||||
"float, class:nwg-look"
|
|
||||||
"size 50% 60%, class:nwg-look"
|
|
||||||
"center 1, class:nwg-look"
|
|
||||||
|
|
||||||
# Special workspaces
|
|
||||||
"workspace special:sysmon, class:btop"
|
|
||||||
"workspace special:music, class:feishin|Spotify|Supersonic"
|
|
||||||
"workspace special:music, initialTitle:Spotify( Free)?"
|
|
||||||
"workspace special:communication, class:discord|equibop|vesktop|whatsapp"
|
|
||||||
"workspace special:todo, class:Todoist"
|
|
||||||
|
|
||||||
"noinitialfocus, class:discord"
|
|
||||||
"focusonactivate 0, class:discord"
|
|
||||||
|
|
||||||
# Always full screen
|
|
||||||
# "fullscreen, title:^(Steam Big Picture Mode)$"
|
|
||||||
# "fullscreen, title:^(steam_app_.*)$"
|
|
||||||
|
|
||||||
# Dialogs
|
|
||||||
"float, title:(Select|Open)( a)? (File|Folder)(s)?"
|
|
||||||
"float, title:File (Operation|Upload)( Progress)?"
|
|
||||||
"float, title:.* Properties"
|
|
||||||
"float, title:Export Image as PNG"
|
|
||||||
"float, title:GIMP Crash Debug"
|
|
||||||
"float, title:Save As"
|
|
||||||
"float, title:Library"
|
|
||||||
|
|
||||||
# Picture in picture (resize and move done via script)
|
|
||||||
"move 100%-w-2% 100%-w-3%, title:Picture(-| )in(-| )[Pp]icture"
|
|
||||||
"keepaspectratio, title:Picture(-| )in(-| )[Pp]icture"
|
|
||||||
"float, title:Picture(-| )in(-| )[Pp]icture"
|
|
||||||
"pin, title:Picture(-| )in(-| )[Pp]icture"
|
|
||||||
|
|
||||||
# Steam
|
|
||||||
"workspace special:steam, class:steam"
|
|
||||||
"workspace special:gaming, class:^(steam_app_.*)$"
|
|
||||||
"rounding 10, title:, class:steam"
|
|
||||||
"float, title:Friends List, class:steam"
|
|
||||||
"immediate, class:steam_app_[0-9]+"
|
|
||||||
"idleinhibit always, class:steam_app_[0-9]+"
|
|
||||||
|
|
||||||
# ATLauncher console
|
|
||||||
"float, class:com-atlauncher-App, title:ATLauncher Console"
|
|
||||||
|
|
||||||
# Autodesk Fusion 360
|
|
||||||
"noblur, title:Fusion360|(Marking Menu), class:fusion360\\.exe" # Escaped backslash
|
|
||||||
|
|
||||||
# Ugh xwayland popups
|
|
||||||
"nodim, xwayland:1, title:win[0-9]+"
|
|
||||||
"noshadow, xwayland:1, title:win[0-9]+"
|
|
||||||
"rounding 10, xwayland:1, title:win[0-9]+"
|
|
||||||
];
|
|
||||||
|
|
||||||
# ######## Workspace rules ########
|
|
||||||
workspace = [
|
|
||||||
"w[tv1]s[false], gapsout:20, gapsin:20"
|
|
||||||
"f[1]s[false], gapsout:20, gapsin:20"
|
|
||||||
"1, monitor:DP-2, default:true"
|
|
||||||
"2, monitor:DP-2"
|
|
||||||
"3, monitor:DP-2"
|
|
||||||
"4, monitor:DP-1"
|
|
||||||
"5, monitor:DP-1"
|
|
||||||
"6, monitor:DP-1"
|
|
||||||
|
|
||||||
"special:gaming, monitor:DP-2, persistent:true"
|
|
||||||
"special:steam, monitor:DP-2, persistent:true, on-created-empty:steam"
|
|
||||||
];
|
|
||||||
|
|
||||||
# ######## Layer rules ########
|
|
||||||
layerrule = [
|
|
||||||
"animation fade, hyprpicker"
|
|
||||||
"animation fade, logout_dialog"
|
|
||||||
"animation fade, selection"
|
|
||||||
"animation fade, wayfreeze"
|
|
||||||
|
|
||||||
# Fuzzel
|
|
||||||
"animation popin 80%, launcher"
|
|
||||||
"blur, launcher"
|
|
||||||
|
|
||||||
# Shell
|
|
||||||
"noanim, caelestia-(launcher|osd|notifications|border-exclusion|area-picker)"
|
|
||||||
"animation fade, caelestia-(drawers|background)"
|
|
||||||
"order 1, caelestia-border-exclusion"
|
|
||||||
"order 2, caelestia-bar"
|
|
||||||
# The commented out lines below need to remain commented if you don't want them active
|
|
||||||
#"xray 1, caelestia-(border|launcher|bar|sidebar|navbar|mediadisplay|screencorners)"
|
|
||||||
#"blur, caelestia-.*"
|
|
||||||
#"blurpopups, caelestia-.*"
|
|
||||||
#"ignorealpha 0.57, caelestia-.*"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#################
|
||||||
|
### AUTOSTART ###
|
||||||
|
#################
|
||||||
|
|
||||||
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
|
# Or execute your favorite apps at launch like this:
|
||||||
|
$terminal = kitty
|
||||||
|
$bar = ags run
|
||||||
|
$cursor = Bibata-Modern-Ice
|
||||||
|
|
||||||
|
exec-once = hyprctl setcursor $cursor 24
|
||||||
|
exec-once = $bar
|
||||||
|
exec-once = [workspace 20 silent] kitty --single-instance --hold fastfetch
|
||||||
|
exec-once = [workspace 20 silent] firefox
|
||||||
|
exec-once = [workspace 1] kitty --single-instance --hold fastfetch
|
||||||
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = HYPRCURSOR_SIZE,24
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
|
||||||
|
################
|
||||||
|
### MONITORS ###
|
||||||
|
################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
|
monitor=,highres@highrr,auto,auto
|
||||||
|
|
||||||
|
|
||||||
|
#####################
|
||||||
|
### LOOK AND FEEL ###
|
||||||
|
#####################
|
||||||
|
|
||||||
|
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||||
|
general {
|
||||||
|
gaps_in = 2
|
||||||
|
gaps_out = 5
|
||||||
|
|
||||||
|
border_size = 2
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||||
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
|
col.inactive_border = rgba(595959aa)
|
||||||
|
|
||||||
|
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||||
|
resize_on_border = false
|
||||||
|
|
||||||
|
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||||
|
allow_tearing = false
|
||||||
|
|
||||||
|
layout = dwindle
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||||
|
decoration {
|
||||||
|
rounding = 0
|
||||||
|
rounding_power = 2
|
||||||
|
|
||||||
|
# Change transparency of focused and unfocused windows
|
||||||
|
active_opacity = 1.0
|
||||||
|
inactive_opacity = 1.0
|
||||||
|
|
||||||
|
shadow {
|
||||||
|
enabled = true
|
||||||
|
range = 4
|
||||||
|
render_power = 3
|
||||||
|
color = rgba(1a1a1aee)
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||||
|
blur {
|
||||||
|
enabled = true
|
||||||
|
size = 3
|
||||||
|
passes = 1
|
||||||
|
|
||||||
|
vibrancy = 0.1696
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||||
|
# animations {
|
||||||
|
# enabled = yes, please :)
|
||||||
|
#
|
||||||
|
# # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||||
|
#
|
||||||
|
# bezier = easeOutQuint,0.23,1,0.32,1
|
||||||
|
# bezier = easeInOutCubic,0.65,0.05,0.36,1
|
||||||
|
# bezier = linear,0,0,1,1
|
||||||
|
# bezier = almostLinear,0.5,0.5,0.75,1.0
|
||||||
|
# bezier = quick,0.15,0,0.1,1
|
||||||
|
#
|
||||||
|
# animation = global, 1, 10, default
|
||||||
|
# animation = border, 1, 5.39, easeOutQuint
|
||||||
|
# animation = windows, 1, 4.79, easeOutQuint
|
||||||
|
# animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
||||||
|
# animation = windowsOut, 1, 1.49, linear, popin 87%
|
||||||
|
# animation = fadeIn, 1, 1.73, almostLinear
|
||||||
|
# animation = fadeOut, 1, 1.46, almostLinear
|
||||||
|
# animation = fade, 1, 3.03, quick
|
||||||
|
# animation = layers, 1, 3.81, easeOutQuint
|
||||||
|
# animation = layersIn, 1, 4, easeOutQuint, fade
|
||||||
|
# animation = layersOut, 1, 1.5, linear, fade
|
||||||
|
# animation = fadeLayersIn, 1, 1.79, almostLinear
|
||||||
|
# animation = fadeLayersOut, 1, 1.39, almostLinear
|
||||||
|
# animation = workspaces, 1, 1.94, almostLinear, fade
|
||||||
|
# animation = workspacesIn, 1, 1.21, almostLinear, fade
|
||||||
|
# animation = workspacesOut, 1, 1.94, almostLinear, fade
|
||||||
|
# }
|
||||||
|
|
||||||
|
animations {
|
||||||
|
enabled = true
|
||||||
|
# Animation curves
|
||||||
|
|
||||||
|
bezier = linear, 0, 0, 1, 1
|
||||||
|
bezier = md3_standard, 0.2, 0, 0, 1
|
||||||
|
bezier = md3_decel, 0.05, 0.7, 0.1, 1
|
||||||
|
bezier = md3_accel, 0.3, 0, 0.8, 0.15
|
||||||
|
bezier = overshot, 0.05, 0.9, 0.1, 1.1
|
||||||
|
bezier = crazyshot, 0.1, 1.5, 0.76, 0.92
|
||||||
|
bezier = hyprnostretch, 0.05, 0.9, 0.1, 1.0
|
||||||
|
bezier = menu_decel, 0.1, 1, 0, 1
|
||||||
|
bezier = menu_accel, 0.38, 0.04, 1, 0.07
|
||||||
|
bezier = easeInOutCirc, 0.85, 0, 0.15, 1
|
||||||
|
bezier = easeOutCirc, 0, 0.55, 0.45, 1
|
||||||
|
bezier = easeOutExpo, 0.16, 1, 0.3, 1
|
||||||
|
bezier = softAcDecel, 0.26, 0.26, 0.15, 1
|
||||||
|
bezier = md2, 0.4, 0, 0.2, 1 # use with .2s duration
|
||||||
|
# Animation configs
|
||||||
|
animation = windows, 1, 3, md3_decel, popin 60%
|
||||||
|
animation = windowsIn, 1, 3, md3_decel, popin 60%
|
||||||
|
animation = windowsOut, 1, 3, md3_accel, popin 60%
|
||||||
|
animation = border, 1, 10, default
|
||||||
|
animation = fade, 1, 3, md3_decel
|
||||||
|
# animation = layers, 1, 2, md3_decel, slide
|
||||||
|
animation = layersIn, 1, 3, menu_decel, slide
|
||||||
|
animation = layersOut, 1, 1.6, menu_accel
|
||||||
|
animation = fadeLayersIn, 1, 2, menu_decel
|
||||||
|
animation = fadeLayersOut, 1, 0.5, menu_accel
|
||||||
|
animation = workspaces, 1, 7, menu_decel, slide
|
||||||
|
# animation = workspaces, 1, 2.5, softAcDecel, slide
|
||||||
|
# animation = workspaces, 1, 7, menu_decel, slidefade 15%
|
||||||
|
# animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
|
||||||
|
animation = specialWorkspace, 1, 3, md3_decel, slidevert
|
||||||
|
}
|
||||||
|
|
||||||
|
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||||
|
# "Smart gaps" / "No gaps when only"
|
||||||
|
# uncomment all if you wish to use that.
|
||||||
|
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||||
|
# workspace = f[1], gapsout:0, gapsin:0
|
||||||
|
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||||
|
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
||||||
|
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
||||||
|
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
dwindle {
|
||||||
|
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = true # You probably want this
|
||||||
|
}
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
master {
|
||||||
|
new_status = master
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||||
|
misc {
|
||||||
|
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
|
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#############
|
||||||
|
### INPUT ###
|
||||||
|
#############
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||||
|
input {
|
||||||
|
kb_layout = us
|
||||||
|
kb_variant =
|
||||||
|
kb_model =
|
||||||
|
kb_options =
|
||||||
|
kb_rules =
|
||||||
|
|
||||||
|
follow_mouse = 1
|
||||||
|
|
||||||
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
|
|
||||||
|
touchpad {
|
||||||
|
natural_scroll = false
|
||||||
|
}
|
||||||
|
|
||||||
|
numlock_by_default = true
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||||
|
gestures {
|
||||||
|
workspace_swipe = false
|
||||||
|
}
|
||||||
|
|
||||||
|
# Example per-device config
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||||
|
device {
|
||||||
|
name = epic-mouse-v1
|
||||||
|
sensitivity = -0.5
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
###################
|
||||||
|
### KEYBINDINGS ###
|
||||||
|
###################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||||
|
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||||
|
$terminal = kitty --single-instance
|
||||||
|
$browser = firefox
|
||||||
|
|
||||||
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
bind = $mainMod, Return, exec, $terminal
|
||||||
|
bind = $mainMod, Q, killactive,
|
||||||
|
bind = $mainMod, M, exit,
|
||||||
|
bind = $mainMod, E, exec, $fileManager
|
||||||
|
bind = $mainMod, V, togglefloating,
|
||||||
|
bind = $mainMod, R, exec, $menu
|
||||||
|
bind = $mainMod, P, pseudo, # dwindle
|
||||||
|
bind = $mainMod, B, togglesplit, # dwindle
|
||||||
|
bind = $mainMod, W, exec, $browser
|
||||||
|
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
bind = $mainMod, H, movefocus, l
|
||||||
|
bind = $mainMod, L, movefocus, r
|
||||||
|
bind = $mainMod, K, movefocus, u
|
||||||
|
bind = $mainMod, J, movefocus, d
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
bind = $mainMod, 1, workspace, 1
|
||||||
|
bind = $mainMod, 2, workspace, 2
|
||||||
|
bind = $mainMod, 3, workspace, 3
|
||||||
|
bind = $mainMod, 4, workspace, 4
|
||||||
|
bind = $mainMod, 5, workspace, 5
|
||||||
|
bind = $mainMod, 6, workspace, 6
|
||||||
|
bind = $mainMod, 7, workspace, 7
|
||||||
|
bind = $mainMod, 8, workspace, 8
|
||||||
|
bind = $mainMod, 9, workspace, 9
|
||||||
|
bind = $mainMod, 0, workspace, 10
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||||
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||||
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||||
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||||
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||||
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||||
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||||
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||||
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||||
|
|
||||||
|
# Example special workspace (scratchpad)
|
||||||
|
bind = $mainMod, S, togglespecialworkspace, magic
|
||||||
|
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
|
bind = $mainMod, mouse_up, workspace, e-1
|
||||||
|
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
|
# Laptop multimedia keys for volume and LCD brightness
|
||||||
|
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
|
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
|
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||||
|
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
|
||||||
|
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
||||||
|
|
||||||
|
# Requires playerctl
|
||||||
|
bindl = , XF86AudioNext, exec, playerctl next
|
||||||
|
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||||
|
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
##############################
|
||||||
|
### WINDOWS AND WORKSPACES ###
|
||||||
|
##############################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||||
|
|
||||||
|
# Example windowrule
|
||||||
|
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
|
||||||
|
# Ignore maximize requests from apps. You'll probably like this.
|
||||||
|
windowrule = suppressevent maximize, class:.*
|
||||||
|
|
||||||
|
# Fix some dragging issues with XWayland
|
||||||
|
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
{
|
{ pkgs, ... }: {
|
||||||
pkgs,
|
|
||||||
inputs,
|
home.file.".config/hypr/hyprland.conf" = {
|
||||||
myConfig,
|
source = builtins.toPath ./hyprland.conf;
|
||||||
lib,
|
force = true;
|
||||||
...
|
};
|
||||||
}: {
|
|
||||||
programs.hyprland = {
|
home.file.".config/hypr/hyprland" = {
|
||||||
enable = true;
|
source = builtins.toPath ./custom;
|
||||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
recursive = true;
|
||||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
force = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,86 +0,0 @@
|
|||||||
{
|
|
||||||
myConfig,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
./config/binds.nix
|
|
||||||
./config/execs.nix
|
|
||||||
./config/rules.nix
|
|
||||||
./config/animation.nix
|
|
||||||
./config/decoration.nix
|
|
||||||
./config/env.nix
|
|
||||||
./config/colours.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home.file.".config/hypr/scripts/wsaction.fish" = {
|
|
||||||
source = builtins.toPath ./scripts/wsaction.fish;
|
|
||||||
executable = true;
|
|
||||||
};
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
systemd.enable = true;
|
|
||||||
settings = {
|
|
||||||
"$mod" = "SUPER";
|
|
||||||
"$term" = "kitty --single-instance";
|
|
||||||
"$browser" = "firefox";
|
|
||||||
"$wsaction" = "fish -c ./scripts/wsaction.fish";
|
|
||||||
"$widget" = "qs -c caelestia";
|
|
||||||
|
|
||||||
monitor = myConfig.nixos.Hyprland.monitors;
|
|
||||||
general = {
|
|
||||||
gaps_in = 2;
|
|
||||||
gaps_out = 5;
|
|
||||||
border_size = 2;
|
|
||||||
# col.active_border = "#0DB7D4FF";
|
|
||||||
# col.inactive_border = "#31313600";
|
|
||||||
# col = {
|
|
||||||
# "inactive_border" = "rgba(595959aa)";
|
|
||||||
# "active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
||||||
# };
|
|
||||||
resize_on_border = false;
|
|
||||||
allow_tearing = false;
|
|
||||||
layout = "dwindle";
|
|
||||||
};
|
|
||||||
|
|
||||||
dwindle = {
|
|
||||||
pseudotile = true;
|
|
||||||
preserve_split = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
master = {
|
|
||||||
new_status = "master";
|
|
||||||
};
|
|
||||||
|
|
||||||
misc = {
|
|
||||||
force_default_wallpaper = -1;
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = "us";
|
|
||||||
follow_mouse = 1;
|
|
||||||
sensitivity = 0;
|
|
||||||
force_no_accel = true;
|
|
||||||
repeat_delay = 250;
|
|
||||||
repeat_rate = 35;
|
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
numlock_by_default = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = {
|
|
||||||
workspace_swipe = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
binds = {
|
|
||||||
workspace_back_and_forth = true;
|
|
||||||
scroll_event_delay = 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
source=./hyprland/keybinds.conf
|
||||||
|
source=./hyprland/autostart.conf
|
||||||
|
source=./hyprland/env.conf
|
||||||
|
source=./hyprland/general.conf
|
||||||
|
source=./hyprland/rules.conf
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
if test "$argv[1]" = '-g'
|
|
||||||
set group
|
|
||||||
set -e $argv[1]
|
|
||||||
end
|
|
||||||
|
|
||||||
if test (count $argv) -ne 2
|
|
||||||
echo 'Wrong number of arguments. Usage: ./wsaction.fish [-g] <dispatcher> <workspace>'
|
|
||||||
exit 1
|
|
||||||
end
|
|
||||||
|
|
||||||
set -l active_ws (hyprctl activeworkspace -j | jq -r '.id')
|
|
||||||
|
|
||||||
if set -q group
|
|
||||||
# Move to group
|
|
||||||
hyprctl dispatch $argv[1] (math "($argv[2] - 1) * 10 + $active_ws % 10")
|
|
||||||
else
|
|
||||||
# Move to ws in group
|
|
||||||
hyprctl dispatch $argv[1] (math "floor(($active_ws - 1) / 10) * 10 + $argv[2]")
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{...}: {
|
|
||||||
programs.hyprlock = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
# home.packages = with pkgs; [
|
|
||||||
# hyprsunset
|
|
||||||
# ];
|
|
||||||
services.hyprsunset = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = [
|
||||||
|
pkgs.kitty
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.kitty.enable = true;
|
||||||
|
programs.kitty.settings = {
|
||||||
|
confirm_os_window_close = 0;
|
||||||
|
window_padding_width = 10;
|
||||||
|
font_size = 12.0;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
myConfig,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# themeFile = "kanagawa";
|
|
||||||
themeFile = "Catppuccin-Mocha";
|
|
||||||
settings = {
|
|
||||||
confirm_os_window_close = 0;
|
|
||||||
window_padding_width = 10;
|
|
||||||
|
|
||||||
font_size = myConfig.general.Terminal.size;
|
|
||||||
font_family = myConfig.general.Terminal.font;
|
|
||||||
bold_font = "auto";
|
|
||||||
italic_font = "auto";
|
|
||||||
bold_italic_font = "auto";
|
|
||||||
shell = "${pkgs.${myConfig.general.Terminal.shell}}/bin/${myConfig.general.Terminal.shell}";
|
|
||||||
|
|
||||||
# optimization
|
|
||||||
input_delay = 0;
|
|
||||||
repaint_delay = 2;
|
|
||||||
sync_to_monitor = false;
|
|
||||||
wayland_enable_ime = false;
|
|
||||||
allow_remote_control = true;
|
|
||||||
};
|
|
||||||
# extraConfig = "include colors.conf";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib) mkEnableOption mkOption mkIf;
|
|
||||||
this = config.custom.lact;
|
|
||||||
|
|
||||||
configFile =
|
|
||||||
pkgs.runCommand "lact-config.yaml" {
|
|
||||||
json = pkgs.writers.writeJSON "lact-config.json" this.settings;
|
|
||||||
} ''
|
|
||||||
# Merge with the defaults
|
|
||||||
${lib.getExe pkgs.yq} -s '.[0] * .[1]' $json ${./lact-default-config.yaml} > config.json
|
|
||||||
# Convert keys to numeric values where possible. It depends on this for some reason.
|
|
||||||
${lib.getExe pkgs.yj} -jy -k < config.json > $out
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
options.custom.lact = {
|
|
||||||
enable = mkEnableOption "my LACT module";
|
|
||||||
settings = mkOption {
|
|
||||||
default = {};
|
|
||||||
type = lib.types.submodule {
|
|
||||||
freeformType = (pkgs.formats.yaml {}).type;
|
|
||||||
};
|
|
||||||
description = ''
|
|
||||||
Settings for LACT. Settings are merged with the defaults.
|
|
||||||
|
|
||||||
The easiest method of acquiring the settings is to delete
|
|
||||||
`/etc/lact/config.yaml`, enter your settings and look at the file.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf this.enable {
|
|
||||||
systemd.packages = with pkgs; [
|
|
||||||
lact
|
|
||||||
];
|
|
||||||
systemd.services.lactd.wantedBy = ["multi-user.target"];
|
|
||||||
|
|
||||||
environment.etc."lact/config.yaml" = mkIf (this.settings != {}) {
|
|
||||||
source = configFile;
|
|
||||||
};
|
|
||||||
systemd.services.lactd = {
|
|
||||||
# Restart if config changed
|
|
||||||
restartTriggers = mkIf (this.settings != {}) [configFile];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
daemon:
|
|
||||||
log_level: info
|
|
||||||
admin_groups:
|
|
||||||
- wheel
|
|
||||||
- sudo
|
|
||||||
disable_clocks_cleanup: false
|
|
||||||
apply_settings_timer: 5
|
|
||||||
gpus: {}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
lutris
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
{myConfig, ...}: {
|
|
||||||
programs.mangohud = {
|
|
||||||
enable = true;
|
|
||||||
enableSessionWide = true;
|
|
||||||
settings = {
|
|
||||||
legacy_layout = false;
|
|
||||||
horizontal = true;
|
|
||||||
background_alpha = 0.6;
|
|
||||||
round_corners = 10;
|
|
||||||
background_color = "000000";
|
|
||||||
font_size = 24;
|
|
||||||
text_color = "FFFFFF";
|
|
||||||
position = "top-left";
|
|
||||||
toggle_hud = "Shift_R+F12";
|
|
||||||
no_display = true;
|
|
||||||
pci_dev = "0:03:00.0";
|
|
||||||
table_columns = 3;
|
|
||||||
|
|
||||||
gpu_text = "GPU";
|
|
||||||
gpu_stats = true;
|
|
||||||
gpu_load_change = true;
|
|
||||||
gpu_load_value = [50 90];
|
|
||||||
gpu_load_color = ["FFFFFF" "FFAA7F" "CC0000"];
|
|
||||||
gpu_temp = true;
|
|
||||||
gpu_power = true;
|
|
||||||
gpu_color = "2E9762";
|
|
||||||
|
|
||||||
cpu_text = "CPU";
|
|
||||||
cpu_stats = true;
|
|
||||||
cpu_load_change = true;
|
|
||||||
cpu_load_value = [50 90];
|
|
||||||
cpu_load_color = ["FFFFFF" "FFAA7F" "CC0000"];
|
|
||||||
cpu_temp = true;
|
|
||||||
cpu_power = true;
|
|
||||||
cpu_color = "2E97CB";
|
|
||||||
|
|
||||||
vram = true;
|
|
||||||
vram_color = "AD64C1";
|
|
||||||
ram = true;
|
|
||||||
ram_color = "C26693";
|
|
||||||
battery = true;
|
|
||||||
battery_color = "00FF00";
|
|
||||||
|
|
||||||
fps = true;
|
|
||||||
fps_metrics = ["avg" "0.01"];
|
|
||||||
engine_version = true;
|
|
||||||
engine_color = "EB5B5B";
|
|
||||||
arch = true;
|
|
||||||
frame_timing = true;
|
|
||||||
frametime_color = "FA8000";
|
|
||||||
fps_limit_method = "late";
|
|
||||||
toggle_fps_limit = "Shift_L+F1";
|
|
||||||
fps_limit = 0;
|
|
||||||
resolution = true;
|
|
||||||
refresh_rate = true;
|
|
||||||
|
|
||||||
# custom_text = [
|
|
||||||
# "-"
|
|
||||||
# "$(cat /home/kenji/.config/goverlay/distro)"
|
|
||||||
# "-"
|
|
||||||
# "$(uname -r)"
|
|
||||||
# "Session:"
|
|
||||||
# "$(echo $XDG_SESSION_TYPE)"
|
|
||||||
# ];
|
|
||||||
|
|
||||||
fps_color_change = true;
|
|
||||||
fps_color = ["B22222" "FDFD09" "39F900"];
|
|
||||||
fps_value = [30 60];
|
|
||||||
|
|
||||||
time = true;
|
|
||||||
|
|
||||||
output_folder = "/home/${myConfig.essentials.Username}/.mangohud/";
|
|
||||||
log_duration = 30;
|
|
||||||
autostart_log = false;
|
|
||||||
log_interval = 100;
|
|
||||||
toggle_logging = "Shift_L+F2";
|
|
||||||
|
|
||||||
blacklist = [
|
|
||||||
"pamac-manager"
|
|
||||||
"lact"
|
|
||||||
"ghb"
|
|
||||||
"bitwig-studio"
|
|
||||||
"ptyxis"
|
|
||||||
"yumex"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
# /etc/nixos/configuration.nix
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
fetchurl,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
moondeckBuddyWrapped = pkgs.appimageTools.wrapType2 {
|
|
||||||
pname = "moondeck-buddy";
|
|
||||||
version = "1.8.2";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://github.com/FrogTheFrog/moondeck-buddy/releases/download/v1.8.2/MoonDeckBuddy-1.8.2-x86_64.AppImage";
|
|
||||||
hash = "sha256-D+9XIi3pIwaAq22DGHWAUqKub778qHQSjCU0aIjXmYY="; # Don't forget to update this!
|
|
||||||
};
|
|
||||||
|
|
||||||
extraPkgs = pkgs:
|
|
||||||
with pkgs; [
|
|
||||||
steam
|
|
||||||
libappindicator-gtk3
|
|
||||||
];
|
|
||||||
|
|
||||||
desktopItems = [
|
|
||||||
(pkgs.makeDesktopItem {
|
|
||||||
name = "Moondeck Buddy";
|
|
||||||
exec = "moondeck-buddy";
|
|
||||||
icon = "applications-other";
|
|
||||||
comment = "A Sunshine/Moondeck Buddy.";
|
|
||||||
categories = ["Utility" "Productivity"];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Moondeck Buddy is an companion app for NVIDIA Sunshine/Moonlight.";
|
|
||||||
homepage = "https://github.com/FrogTheFrog/moondeck-buddy";
|
|
||||||
license = licenses.gpl3Only;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
mainProgram = "moondeck-buddy";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
moondeckBuddyWrapped
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.appimage.enable = true;
|
|
||||||
programs.appimage.binfmt = true;
|
|
||||||
|
|
||||||
# --- Firewall Configuration ---
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
59999 # Allow Moondeck Buddy to listen on this port
|
|
||||||
];
|
|
||||||
# If Moondeck Buddy also needs UDP, uncomment and add it here:
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
|
||||||
59999
|
|
||||||
];
|
|
||||||
|
|
||||||
systemd.services.moondeck-buddy = {
|
|
||||||
description = "Moondeck Buddy service for Sunshine/Moonlight integration";
|
|
||||||
after = ["network-online.target" "display-manager.service"]; # Ensure display manager is up
|
|
||||||
wantedBy = ["multi-user.target"]; # Still autostart with multi-user target
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "simple";
|
|
||||||
User = "${myConfig.essentials.Username}"; # <--- IMPORTANT: User *must* have access to the display
|
|
||||||
Group = "users";
|
|
||||||
|
|
||||||
ExecStart = "${moondeckBuddyWrapped}/bin/moondeck-buddy";
|
|
||||||
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = 5;
|
|
||||||
|
|
||||||
# Crucial for GUI applications running as system services:
|
|
||||||
Environment = [
|
|
||||||
"DISPLAY=:0" # Assuming your main display is :0. This can vary.
|
|
||||||
# "XAUTHORITY=/home/your-username/.Xauthority" # Needed if using Xauthority
|
|
||||||
# If using Wayland, you might need XDG_RUNTIME_DIR and WAYLAND_DISPLAY
|
|
||||||
# "XDG_RUNTIME_DIR=/run/user/$(id -u your-username)"
|
|
||||||
# "WAYLAND_DISPLAY=wayland-0" # Or specific to your compositor
|
|
||||||
];
|
|
||||||
|
|
||||||
# You might also need to explicitly grant access, e.g., with xhost +
|
|
||||||
# but that's a security hole. Best is to rely on user authentication.
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = [
|
|
||||||
inputs.nixovim.packages.${system}.full
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
nvimSource = pkgs.fetchFromGitea {
|
||||||
|
domain = "git.sakamoto.dev";
|
||||||
|
owner = "kenji";
|
||||||
|
repo = "nvim";
|
||||||
|
rev = "5fc3341ac43b35fd4032c07925927d7f1e82886c";
|
||||||
|
sha256 = "sha256-YbP814fKOFuCWBRwlccd4nx/h8sdMgiJQu54thRLsK8=";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
home.packages = [
|
||||||
|
pkgs.lazygit
|
||||||
|
pkgs.ripgrep
|
||||||
|
];
|
||||||
|
home.file.".config/nvim" = {
|
||||||
|
# BUG requires --impure
|
||||||
|
source = /home/biscuit/Nixos/packages/nvim/nvchad;
|
||||||
|
# source = nvimSource;
|
||||||
|
recursive = true;
|
||||||
|
force = true;
|
||||||
|
};
|
||||||
|
# Example use: provide it as a source
|
||||||
|
# You could pass `nvimSource` to a program, or maybe use it in home.file, etc.
|
||||||
|
}
|
||||||
|
|
||||||
Submodule
+1
Submodule packages/nvim/nvchad added at 2b4293a4c1
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
environment.systemPackages = [
|
|
||||||
inputs.caelestia-shell.packages.${system}.caelestia-shell
|
|
||||||
inputs.caelestia-shell.packages.${system}.caelestia-cli
|
|
||||||
inputs.caelestia-shell.packages.${system}.beat-detector
|
|
||||||
];
|
|
||||||
environment.sessionVariables = {
|
|
||||||
# Set CAELESTIA_BD_PATH to the store path of beat-detector
|
|
||||||
CAELESTIA_BD_PATH = "${inputs.caelestia-shell.packages.${system}.beat-detector}/bin/beat_detector";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
caelestia-shell = pkgs.fetchFromGitea {
|
|
||||||
domain = "git.sakamoto.dev";
|
|
||||||
owner = "caelestia-dots";
|
|
||||||
repo = "shell";
|
|
||||||
rev = "main";
|
|
||||||
sha256 = "sha256-y9Wkh+9ND8GcUYhybXdEPTVY6gUb0jclnbbVi70l70Y=";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
];
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
inputs.quickshell.packages.${system}.default
|
|
||||||
wl-screenrec
|
|
||||||
libnotify
|
|
||||||
grim
|
|
||||||
foot
|
|
||||||
hyprpicker
|
|
||||||
qalculate-qt
|
|
||||||
fuzzel
|
|
||||||
inotify-tools
|
|
||||||
app2unit
|
|
||||||
fish
|
|
||||||
jq
|
|
||||||
fd
|
|
||||||
cliphist
|
|
||||||
(pkgs.python3.withPackages (python-pkgs:
|
|
||||||
with python-pkgs; [
|
|
||||||
aubio
|
|
||||||
pyaudio
|
|
||||||
numpy
|
|
||||||
]))
|
|
||||||
cava
|
|
||||||
bluez
|
|
||||||
ddcutil
|
|
||||||
brightnessctl
|
|
||||||
curl
|
|
||||||
material-symbols
|
|
||||||
];
|
|
||||||
home.file.".config/quickshell/caelestia" = {
|
|
||||||
source = caelestia-shell;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
programs.rofi = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs; [
|
|
||||||
rofi-calc
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
{lib, ...}: {
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
format = lib.concatStrings [
|
|
||||||
"$username"
|
|
||||||
"$hostname"
|
|
||||||
"$directory"
|
|
||||||
"$git_branch"
|
|
||||||
"$git_state"
|
|
||||||
"$git_status"
|
|
||||||
"$cmd_duration"
|
|
||||||
"$line_break"
|
|
||||||
"$python"
|
|
||||||
"$character"
|
|
||||||
];
|
|
||||||
|
|
||||||
directory = {
|
|
||||||
style = "blue";
|
|
||||||
};
|
|
||||||
|
|
||||||
character = {
|
|
||||||
success_symbol = "[→](purple)";
|
|
||||||
error_symbol = "[→](red)";
|
|
||||||
vimcmd_symbol = "[←](green)";
|
|
||||||
};
|
|
||||||
|
|
||||||
git_branch = {
|
|
||||||
format = "[$branch]($style)";
|
|
||||||
style = "bright-black";
|
|
||||||
};
|
|
||||||
git_status = {
|
|
||||||
format = "[(*$conflicted$untracked$modified$staged$renamed$deleted) $ahead_behind$stashed]($style)";
|
|
||||||
style = "cyan";
|
|
||||||
conflicted = "";
|
|
||||||
untracked = "";
|
|
||||||
modified = "";
|
|
||||||
staged = "";
|
|
||||||
renamed = "";
|
|
||||||
deleted = "";
|
|
||||||
stashed = "≡";
|
|
||||||
};
|
|
||||||
git_state = {
|
|
||||||
format = "([$state( $progress_current/$progress_total)]($style)) ";
|
|
||||||
style = "bright-black";
|
|
||||||
};
|
|
||||||
|
|
||||||
cmd_duration = {
|
|
||||||
format = "[$duration]($style) ";
|
|
||||||
style = "yellow";
|
|
||||||
};
|
|
||||||
|
|
||||||
python = {
|
|
||||||
format = "[$virtualenv]($style) ";
|
|
||||||
style = "bright-black";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# home.file.".config/starship.toml" = {
|
|
||||||
# source = builtins.toPath ./pure.toml;
|
|
||||||
# };
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
extraCompatPackages = with pkgs; [proton-ge-bin];
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
mangohud
|
|
||||||
gamescope-wsi
|
|
||||||
];
|
|
||||||
};
|
|
||||||
programs.gamemode.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
xdg.desktopEntries = {
|
|
||||||
steam = {
|
|
||||||
name = "Steam";
|
|
||||||
genericName = "Game Platform";
|
|
||||||
comment = "Play and discuss games.";
|
|
||||||
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam %U"; # The standard command to launch Steam
|
|
||||||
exec = "${pkgs.steam}/bin/steam %U"; # The standard command to launch Steam
|
|
||||||
terminal = false;
|
|
||||||
icon = "steam"; # Assumes the 'steam' icon is available in your icon theme
|
|
||||||
type = "Application";
|
|
||||||
categories = ["Game" "Network"];
|
|
||||||
mimeType = [
|
|
||||||
"x-scheme-handler/steam" # For handling steam:// links
|
|
||||||
];
|
|
||||||
actions = {
|
|
||||||
BigPicture = {
|
|
||||||
name = "Big Picture Mode";
|
|
||||||
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://open/bigpicture";
|
|
||||||
exec = "${pkgs.steam}/bin/steam steam://open/bigpicture";
|
|
||||||
};
|
|
||||||
Store = {
|
|
||||||
name = "Store";
|
|
||||||
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://store";
|
|
||||||
exec = "${pkgs.steam}/bin/steam steam://open/bigpicture";
|
|
||||||
};
|
|
||||||
Library = {
|
|
||||||
name = "Library";
|
|
||||||
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://library";
|
|
||||||
exec = "${pkgs.steam}/bin/steam steam://open/bigpicture";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
myConfig,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
];
|
|
||||||
environment.sessionVariables = {
|
|
||||||
DECKY_HOME = "/home/${myConfig.essentials.Username}/homebrew";
|
|
||||||
DECKY_USER_HOME = "/home/${myConfig.essentials.Username}";
|
|
||||||
};
|
|
||||||
|
|
||||||
# environment.systemPackages = with pkgs; [inputs.jovian.packages.${system}.default];
|
|
||||||
jovian.steam = {
|
|
||||||
enable = true;
|
|
||||||
autoStart = true;
|
|
||||||
desktopSession = "hyprland";
|
|
||||||
user = "${myConfig.essentials.Username}";
|
|
||||||
environment = {
|
|
||||||
OUTPUT_CONNECTOR = "DP-1"; # Keep this
|
|
||||||
STEAM_GAMESCOPE_CMD_OPTIONS = "-O DP-1"; # Force override flag
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
jovian.decky-loader = {
|
|
||||||
enable = true;
|
|
||||||
stateDir = "/home/${myConfig.essentials.Username}/Games/Decky";
|
|
||||||
user = "${myConfig.essentials.Username}";
|
|
||||||
};
|
|
||||||
|
|
||||||
jovian.devices.steamdeck = {
|
|
||||||
enableControllerUdevRules = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# programs.gamescope = {
|
|
||||||
# enable = true;
|
|
||||||
# args = ["--output-name" "DP-1"];
|
|
||||||
# };
|
|
||||||
|
|
||||||
jovian.hardware.has.amd.gpu = true;
|
|
||||||
jovian.steamos.enableBluetoothConfig = true;
|
|
||||||
# jovian.steamos.useSteamOSConfig = true;
|
|
||||||
# jovian.devices.steamdeck.enableControllerUdevRules = true;
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
{pkgs, ...}: let
|
|
||||||
mangoConfigList = ["cpu_temp" "gpu_temp" "ram" "vram"];
|
|
||||||
mangoConfigStr = builtins.concatStringsSep "," mangoConfigList;
|
|
||||||
|
|
||||||
gamescopeArgsList = [
|
|
||||||
"--adaptive-sync"
|
|
||||||
"--hdr-enabled"
|
|
||||||
"--mangoapp"
|
|
||||||
"--rt"
|
|
||||||
"--steam"
|
|
||||||
];
|
|
||||||
gamescopeArgsStr = builtins.concatStringsSep " " gamescopeArgsList;
|
|
||||||
|
|
||||||
steamArgsList = [
|
|
||||||
"-pipewire-dmabuf"
|
|
||||||
"-tenfoot"
|
|
||||||
];
|
|
||||||
steamArgsStr = builtins.concatStringsSep " " steamArgsList;
|
|
||||||
|
|
||||||
myGamescopeSteamScript = pkgs.writeShellApplication {
|
|
||||||
name = "start-gamescope-steam";
|
|
||||||
runtimeInputs = [
|
|
||||||
pkgs.gamescope
|
|
||||||
pkgs.steam
|
|
||||||
pkgs.mangohud
|
|
||||||
];
|
|
||||||
text = ''
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
|
|
||||||
export MANGOHUD=1
|
|
||||||
export MANGOHUD_CONFIG="${mangoConfigStr}"
|
|
||||||
|
|
||||||
exec ${pkgs.gamescope}/bin/gamescope ${gamescopeArgsStr} -- ${pkgs.steam}/bin/steam ${steamArgsStr}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
programs = {
|
|
||||||
gamescope = {
|
|
||||||
enable = true;
|
|
||||||
capSysNice = true;
|
|
||||||
};
|
|
||||||
steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true;
|
|
||||||
dedicatedServer.openFirewall = true;
|
|
||||||
localNetworkGameTransfers.openFirewall = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.xone.enable = true;
|
|
||||||
|
|
||||||
environment.loginShellInit = ''
|
|
||||||
[[ "$(tty)" = "/dev/tty1" ]] && ${myGamescopeSteamScript}/bin/start-gamescope-steam
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.programs.sunshine;
|
|
||||||
in {
|
|
||||||
options.programs.sunshine = with lib; {
|
|
||||||
enable = mkEnableOption "sunshine";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
networking.firewall.allowedTCPPortRanges = [
|
|
||||||
{
|
|
||||||
from = 47984;
|
|
||||||
to = 48010;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
networking.firewall.allowedUDPPortRanges = [
|
|
||||||
{
|
|
||||||
from = 47998;
|
|
||||||
to = 48010;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
security.wrappers.sunshine = {
|
|
||||||
owner = "root";
|
|
||||||
group = "root";
|
|
||||||
capabilities = "cap_sys_admin+p";
|
|
||||||
source = "${pkgs.sunshine}/bin/sunshine";
|
|
||||||
};
|
|
||||||
systemd.user.services.sunshine = {
|
|
||||||
description = "Sunshine self-hosted game stream host for Moonlight";
|
|
||||||
startLimitBurst = 5;
|
|
||||||
startLimitIntervalSec = 500;
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${config.security.wrapperDir}/sunshine";
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = "5s";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./config.nix
|
|
||||||
];
|
|
||||||
programs.sunshine.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{myConfig, ...}: {
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
|
||||||
users.extraGroups.vboxusers.members = ["${myConfig.essentials.Username}"];
|
|
||||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,152 @@
|
|||||||
|
{
|
||||||
|
"layer": "top",
|
||||||
|
"position": "top",
|
||||||
|
"height": 45,
|
||||||
|
"spacing": 0,
|
||||||
|
"modules-left": [
|
||||||
|
"hyprland/workspaces",
|
||||||
|
"tray",
|
||||||
|
"custom/lock",
|
||||||
|
"custom/reboot",
|
||||||
|
"custom/power",
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"modules-center": ["hyprland/window"],
|
||||||
|
"modules-right": [
|
||||||
|
"network",
|
||||||
|
"battery",
|
||||||
|
"bluetooth",
|
||||||
|
"pulseaudio",
|
||||||
|
"backlight",
|
||||||
|
"custom/temperature",
|
||||||
|
"memory",
|
||||||
|
"cpu"
|
||||||
|
],
|
||||||
|
"hyprland/workspaces": {
|
||||||
|
"disable-scroll": false,
|
||||||
|
"all-outputs": true,
|
||||||
|
"format": "{icon}",
|
||||||
|
"on-click": "activate",
|
||||||
|
"persistent-workspaces": {
|
||||||
|
"*":[1,2,3,4,5,6,7]
|
||||||
|
},
|
||||||
|
"format-icons":{
|
||||||
|
"1": "",
|
||||||
|
"2": "",
|
||||||
|
"3": "",
|
||||||
|
"4": "",
|
||||||
|
"5": "",
|
||||||
|
"6": "",
|
||||||
|
"7": "",
|
||||||
|
"active": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"custom/lock": {
|
||||||
|
"format": " ",
|
||||||
|
"on-click": "hyprlock",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "锁屏"
|
||||||
|
},
|
||||||
|
"custom/reboot": {
|
||||||
|
"format": " ",
|
||||||
|
"on-click": "systemctl reboot",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "重启"
|
||||||
|
},
|
||||||
|
"custom/power": {
|
||||||
|
"format": " ",
|
||||||
|
"on-click": "systemctl poweroff",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "关机"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {essid} ",
|
||||||
|
"format-ethernet": " Wired ",
|
||||||
|
"tooltip-format": "<span color='#FF1493'> </span>{bandwidthUpBytes} <span color='#00BFFF'> </span>{bandwidthDownBytes}",
|
||||||
|
"format-linked": " {ifname} (No IP) ",
|
||||||
|
"format-disconnected": " Disconnected ",
|
||||||
|
"format-alt": " {signalStrength}% ",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 15
|
||||||
|
},
|
||||||
|
"format": " {icon} {capacity}% ",
|
||||||
|
"format-charging": " {capacity}%",
|
||||||
|
"interval": 1,
|
||||||
|
"format-icons": ["", "", "", "", ""],
|
||||||
|
"tooltip": true
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
"format": "{icon}{volume}% ",
|
||||||
|
"format-muted": " 0% ",
|
||||||
|
"format-icons": {
|
||||||
|
"headphone": " ",
|
||||||
|
"hands-free": " ",
|
||||||
|
"headset": " ",
|
||||||
|
"phone": " ",
|
||||||
|
"portable": " ",
|
||||||
|
"car": " ",
|
||||||
|
"default": [
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" "
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"on-click-right": "pavucontrol -t 3",
|
||||||
|
"on-click": "pactl -- set-sink-mute 0 toggle",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "当前系统声音: {volume}%"
|
||||||
|
},
|
||||||
|
"custom/temperature": {
|
||||||
|
"exec": "sensors | awk '/^Package id 0:/ {print int($4)}'",
|
||||||
|
"format": " {}°C ",
|
||||||
|
"interval": 5,
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "当前 CPU 温度: {}°C"
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": " {used:0.1f}G/{total:0.1f}G ",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "当前内存占比: {used:0.2f}G/{total:0.2f}G"
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": " {usage}% ",
|
||||||
|
"tooltip": true
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"interval": 1,
|
||||||
|
"timezone": "Asia/Chengdu",
|
||||||
|
"format": " {:%H:%M} ",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "{:L%Y 年 %m 月 %d 日, %A}"
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"icon-size": 17,
|
||||||
|
"spacing": 6
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
"device": "intel_backlight",
|
||||||
|
"format": "{icon}{percent}% ",
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "当前屏幕亮度: {percent}%",
|
||||||
|
"format-icons": [
|
||||||
|
" ", // 暗 - 深灰
|
||||||
|
" ", // 中 - 灰
|
||||||
|
" ", // 亮 - 柠檬黄
|
||||||
|
" " // 最亮 - 金色
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bluetooth": {
|
||||||
|
"format": " {status} ",
|
||||||
|
"format-connected": " {device_alias} ",
|
||||||
|
"format-connected-battery": " {device_alias}{device_battery_percentage}% ",
|
||||||
|
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
||||||
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
|
||||||
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
||||||
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,131 @@
|
|||||||
|
* {
|
||||||
|
font-family: "CaskaydiaCove Nerd Font", "Font Awesome 6 Free", "Font Awesome 6 Free Solid";
|
||||||
|
font-size: 16px;
|
||||||
|
border-radius: 0;
|
||||||
|
min-height: 0;
|
||||||
|
border: none;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces{
|
||||||
|
background-color: rgba(24,24,37,1.0);
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray{
|
||||||
|
margin: 6px 3px;
|
||||||
|
background-color: rgba(36, 36, 52, 1.0);
|
||||||
|
padding: 6px 12px; /* 保持内部间距 */
|
||||||
|
border-radius: 6px;
|
||||||
|
border-width: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#waybar {
|
||||||
|
background-color: #181825;
|
||||||
|
transition-property: background-color;
|
||||||
|
transition-duration: 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window,
|
||||||
|
#clock,
|
||||||
|
#custom-power,
|
||||||
|
#custom-reboot,
|
||||||
|
#bluetooth,
|
||||||
|
#battery,
|
||||||
|
#pulseaudio,
|
||||||
|
#backlight,
|
||||||
|
#custom-temperature,
|
||||||
|
#memory,
|
||||||
|
#cpu,
|
||||||
|
#network,
|
||||||
|
#custom-lock{
|
||||||
|
border-radius: 4px;
|
||||||
|
margin: 6px 3px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
background-color: #1e1e2e;
|
||||||
|
color: #181825;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
background-color: #89b4fa;
|
||||||
|
}
|
||||||
|
#custom-power{
|
||||||
|
background-color: #f38ba8;
|
||||||
|
}
|
||||||
|
#custom-reboot{
|
||||||
|
background-color: #a6e3a1;
|
||||||
|
}
|
||||||
|
#bluetooth{
|
||||||
|
background-color: #f9e2af;
|
||||||
|
}
|
||||||
|
#battery{
|
||||||
|
background-color: #cba6f7;
|
||||||
|
}
|
||||||
|
#pulseaudio{
|
||||||
|
background-color: #89dceb;
|
||||||
|
}
|
||||||
|
#backlight{
|
||||||
|
background-color: #a6a3a1;
|
||||||
|
}
|
||||||
|
#custom-temperature{
|
||||||
|
background-color: #74c7ec;
|
||||||
|
}
|
||||||
|
#memory{
|
||||||
|
background-color: #f7768e;
|
||||||
|
}
|
||||||
|
#cpu{
|
||||||
|
background-color: #f38ba8;
|
||||||
|
}
|
||||||
|
#network{
|
||||||
|
background-color: #fab387;
|
||||||
|
}
|
||||||
|
#custom-lock{
|
||||||
|
background-color: #94e2d5;
|
||||||
|
}
|
||||||
|
#window{
|
||||||
|
background-color: #74c7ec;
|
||||||
|
}
|
||||||
|
|
||||||
|
#waybar.hidden {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
all: initial;
|
||||||
|
/* Remove GTK theme values (waybar #1351) */
|
||||||
|
min-width: 0;
|
||||||
|
/* Fix weird spacing in materia (waybar #450) */
|
||||||
|
box-shadow: inset 0 -3px transparent;
|
||||||
|
/* Use box-shadow instead of border so the text isn't offset */
|
||||||
|
padding: 6px 18px;
|
||||||
|
margin: 6px 3px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: rgba(36, 36, 52, 1.0);
|
||||||
|
color: #cdd6f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
color: #1e1e2e;
|
||||||
|
background-color: #cdd6f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
box-shadow: inherit;
|
||||||
|
text-shadow: inherit;
|
||||||
|
color: #1e1e2e;
|
||||||
|
background-color: #cdd6f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 16px;
|
||||||
|
background-color: #131822;
|
||||||
|
color: #C0C0C0;
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip label {
|
||||||
|
padding: 5px;
|
||||||
|
background-color: #131822;
|
||||||
|
color: #C0C0C0;
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user