Compare commits

..

No commits in common. "914c25808f0983809c1f76b02ac7b59e4f507099" and "0e15fa0b0d15a74865128934b8294c3c38112d4a" have entirely different histories.

12 changed files with 24 additions and 214 deletions

View File

@ -1,9 +1,9 @@
rec { rec {
default = { default = {
browser = "io.github.zen_browser.zen"; browser = "io.github.zen_browser.zen.desktop";
calculator = "gnome-calculator"; calculator = "gnome-calculator";
fileManager = "nautilus"; fileManager = "nautilus";
imageViewer = "loupe"; imageViewer = "org.gnome.Loupe.desktop";
lockScreen = "hyprlock"; lockScreen = "hyprlock";
terminal = "kitty"; terminal = "kitty";
}; };

66
flake.lock generated
View File

@ -1,49 +1,5 @@
{ {
"nodes": { "nodes": {
"ags": {
"inputs": {
"astal": "astal",
"nixpkgs": [
"hyprpanel",
"nixpkgs"
]
},
"locked": {
"lastModified": 1735485506,
"narHash": "sha256-7CWr3Q83KnGiLUn0oaboafLMOXQ0X9/fjFRVY1xopbM=",
"owner": "aylur",
"repo": "ags",
"rev": "251d39413543264361898b02035775aa3e46fe52",
"type": "github"
},
"original": {
"owner": "aylur",
"repo": "ags",
"type": "github"
}
},
"astal": {
"inputs": {
"nixpkgs": [
"hyprpanel",
"ags",
"nixpkgs"
]
},
"locked": {
"lastModified": 1735172721,
"narHash": "sha256-rtEAwGsHSppnkR3Qg3eRJ6Xh/F84IY9CrBBLzYabalY=",
"owner": "aylur",
"repo": "astal",
"rev": "6c84b64efc736e039a8a10774a4a1bf772c37aa2",
"type": "github"
},
"original": {
"owner": "aylur",
"repo": "astal",
"type": "github"
}
},
"base16": { "base16": {
"inputs": { "inputs": {
"fromYaml": "fromYaml" "fromYaml": "fromYaml"
@ -419,27 +375,6 @@
"type": "github" "type": "github"
} }
}, },
"hyprpanel": {
"inputs": {
"ags": "ags",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1736315488,
"narHash": "sha256-XKQT7ZY+0q3CHncCQ5QvSq8inG44A0ReokqYjieL1Z4=",
"owner": "Jas-SinghFSU",
"repo": "HyprPanel",
"rev": "9663d2f6b74df8476feb87b3b09e998c8ef87ac8",
"type": "github"
},
"original": {
"owner": "Jas-SinghFSU",
"repo": "HyprPanel",
"type": "github"
}
},
"ixx": { "ixx": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [
@ -575,7 +510,6 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprpanel": "hyprpanel",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nixvim": "nixvim",

View File

@ -9,10 +9,6 @@
url = "github:nix-community/home-manager/release-24.11"; url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = { nixvim = {
url = "github:nix-community/nixvim"; url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs-unstable"; inputs.nixpkgs.follows = "nixpkgs-unstable";
@ -29,40 +25,39 @@
nixpkgs, nixpkgs,
nixpkgs-unstable, nixpkgs-unstable,
home-manager, home-manager,
hyprpanel,
stylix, stylix,
... ...
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
inherit (self) outputs; inherit (self) outputs;
common = import ./common.nix;
in in
{ {
defaultPackage.${system} = home-manager.defaultPackage.${system};
# Adds the nix fmt command to format nix files # Adds the nix fmt command to format nix files
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style; formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = system; system = system;
specialArgs = { inherit outputs inputs; }; # Pass args to modules specialArgs = { inherit outputs; }; # Pass args to modules
modules = [ modules = [
./configuration.nix ./configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager = { home-manager =
# Backups conflicting files in case of error let
backupFileExtension = "bkp"; common = import ./common.nix;
useGlobalPkgs = true; in
useUserPackages = true; {
# Passes inputs as an argument to home-manager # Backups conflicting files in case of error
extraSpecialArgs = { inherit inputs; }; backupFileExtension = "bkp";
users.${common.username} = import ./home-manager; useGlobalPkgs = true;
}; useUserPackages = true;
# Passes inputs as an argument to home-manager
extraSpecialArgs = { inherit inputs; };
users.${common.username} = import ./home-manager;
};
} }
stylix.nixosModules.stylix stylix.nixosModules.stylix
./overlays.nix
]; ];
}; };

View File

@ -21,7 +21,7 @@ in
"$mainMod, B, exec, ${app.browser}" "$mainMod, B, exec, ${app.browser}"
"$mainMod, L, exec, ${app.lockScreen}" "$mainMod, L, exec, ${app.lockScreen}"
"$mainMod, K, exec, [float] ${app.calculator}" "$mainMod, K, exec, [float] ${app.calculator}"
"$mainMod, ESCAPE, exec, wlogout" "$mainMod, ESC, exec, wlogout"
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
"$mainMod, left, movefocus, l" "$mainMod, left, movefocus, l"

View File

@ -6,7 +6,6 @@
./waybar ./waybar
./hypridle ./hypridle
./hyprlock ./hyprlock
./hyprpanel
./hyprshot.nix ./hyprshot.nix
./settings.nix ./settings.nix
./swaync ./swaync

View File

@ -1,110 +0,0 @@
{ inputs, ... }:
let
common = import ../../../common.nix;
theme = import ../../../theme.nix;
in
{
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
programs.hyprpanel = {
enable = true;
# Automatically restart HyprPanel with systemd.
systemd.enable = true;
# Add hyprpanel to the Hyprland config 'exec-once'.
hyprland.enable = true;
# Fix the overwrite issue with HyprPanel.
overwrite.enable = true;
# Import a theme from './themes/*.json'.
theme = "";
# Override the final config with an arbitrary set.
# Useful for overriding colors in your selected theme.
# Default: {}
override = {
theme.bar.menus.text = "#123ABC";
};
# Configure bar layouts for monitors.
layout = {
"bar.layouts" = {
"*" = {
left = [
"dashboard"
"workspaces"
"windowtitle"
];
middle = [ "media" ];
right = [
"kbinput"
"volume"
"network"
"systray"
"clock"
"notifications"
];
};
};
};
# Configure and theme almost all options from the GUI.
# Options that require '{}' or '[]' are not yet implemented,
# except for the layout above.
# See 'https://hyprpanel.com/configuration/settings.html'.
# Default: <same as gui>
settings = {
bar = {
clock.format = "%a %b %d %H:%M";
customModules.kbLayout.leftClick = "hyprctl switchxkblayout keychron-keychron-k8-pro next";
launcher.autoDetectIcon = true;
network.label = false;
workspaces = {
show_icons = false;
show_numbered = true;
};
};
menus.clock = {
time = {
military = true;
hideSeconds = true;
};
weather = {
unit = "metric";
location = "Bergen, Norway"; # TODO not working
};
};
menus.dashboard = {
directories.enabled = false;
shortcuts.left = {
shortcut1 = {
command = common.default.browser;
icon = ""; # TODO replace with Zen icon
tooltip = "Zen";
};
shortcut2 = {
command = "spotify";
icon = "";
tooltip = "Spotify";
};
## shortcut3 === discord
## shortcut4 === rofi -show drun
};
stats.enable_gpu = true;
};
scalingPriority = "hyprland";
theme = {
bar.transparent = true;
font = {
name = "${theme.nerdFont} NF";
size = "16px";
};
};
wallpaper.enable = true;
};
};
}

View File

@ -18,7 +18,8 @@ in
"${app.terminal}" "${app.terminal}"
"hypridle" "hypridle"
"systemctl --user start hyprpolkitagent" "systemctl --user start hyprpolkitagent"
# "waybar" "swaync"
"waybar"
"waypaper --restore" "waypaper --restore"
]; ];

View File

@ -3,8 +3,9 @@ let
theme = import ../../../theme.nix; theme = import ../../../theme.nix;
in in
{ {
# TODO inject font
services.swaync = { services.swaync = {
enable = false; enable = true;
style = lib.mkDefault '' style = lib.mkDefault ''
* { * {
all: unset; all: unset;

View File

@ -1,3 +1,5 @@
{ ... }:
{ {
home.file.".config/waybar" = { home.file.".config/waybar" = {
source = ./config; source = ./config;

View File

@ -10,7 +10,7 @@
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
hyprpolkitagent # Auth deamon providing modals for password auth hyprpolkitagent # Auth deamon providing modals for password auth
hyprshot # Screenshots hyprshot # Screenshots
# waybar waybar
]; ];
programs = { programs = {

View File

@ -3,10 +3,5 @@
programs.nh = { programs.nh = {
enable = true; enable = true;
flake = ../.; flake = ../.;
clean = {
enable = true;
dates = "weekly";
extraArgs = "--keep-since 30d";
};
}; };
} }

View File

@ -1,7 +0,0 @@
{ inputs, ... }:
{
nixpkgs.overlays = with inputs; [
hyprpanel.overlay
];
}