nix meow
This commit is contained in:
23
nix/flake.lock
generated
23
nix/flake.lock
generated
@@ -405,11 +405,32 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"quickshell": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1758273351,
|
||||||
|
"narHash": "sha256-wOv1guIi9THD1NjOtBU2Xh/Avg9xv7nIjsfFSkr1NeQ=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "e9a574d919a89602d2868621576b2ccae54a5cb0",
|
||||||
|
"revCount": 675,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"quickshell": "quickshell"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
|||||||
@@ -9,19 +9,23 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
|
quickshell = {
|
||||||
|
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ nixpkgs, home-manager, ... }:
|
inputs@{ nixpkgs, home-manager, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; config = { allowUnfree = true; }; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
homeConfigurations."doloro" = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations."doloro" = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs system;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./modules/hyprland/home.nix
|
./modules/hyprland/home.nix
|
||||||
|
./modules/quickshell/home.nix
|
||||||
|
./modules/chromium/home.nix
|
||||||
|
./modules/neovim/home.nix
|
||||||
];
|
];
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
|
|||||||
17
nix/modules/chromium/home.nix
Normal file
17
nix/modules/chromium/home.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ inputs, pkgs, system, ... }:
|
||||||
|
let
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
extensions = [
|
||||||
|
{ id = "ghmbeldphafepmbegfdlkpapadhbakde"; } # ProtonPass
|
||||||
|
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # Ublock
|
||||||
|
{ id = "kpmjjdhbcfebfjgdnpjagcndoelnidfj"; } # Control panel for twitter
|
||||||
|
{ id = "aighbdamfnndbemigjcbkdklkegkgmpl"; } # Better twitter embeds
|
||||||
|
{ id = "enamippconapkdmgfgjchkhakpfinmaj"; } # DeArrow
|
||||||
|
];
|
||||||
|
package = pkgs.chromium.override { enableWideVine = true; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
# col.inactive_border = rgba(595959aa)
|
# col.inactive_border = rgba(595959aa)
|
||||||
resize_on_border = false;
|
resize_on_border = false;
|
||||||
allow_tearing = true;
|
allow_tearing = true;
|
||||||
layout = dwindle;
|
layout = "dwindle";
|
||||||
}
|
};
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 0;
|
rounding = 0;
|
||||||
rounding_power = 1;
|
rounding_power = 1;
|
||||||
@@ -30,21 +30,21 @@
|
|||||||
|
|
||||||
shadow = {
|
shadow = {
|
||||||
enable = false;
|
enable = false;
|
||||||
}
|
};
|
||||||
|
|
||||||
blur = {
|
blur = {
|
||||||
enable = false;
|
enable = false;
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
animations = {
|
animations = {
|
||||||
enabled = yes;
|
enabled = true;
|
||||||
bezier = [
|
bezier = [
|
||||||
"easeOutQuint,0.23,1,0.32,1"
|
"easeOutQuint,0.23,1,0.32,1"
|
||||||
"easeInOutCubic,0.65,0.05,0.36,1"
|
"easeInOutCubic,0.65,0.05,0.36,1"
|
||||||
"linear,0,0,1,1"
|
"linear,0,0,1,1"
|
||||||
"almostLinear,0.5,0.5,0.75,1.0"
|
"almostLinear,0.5,0.5,0.75,1.0"
|
||||||
"quick,0.15,0,0.1,1"
|
"quick,0.15,0,0.1,1"
|
||||||
]
|
];
|
||||||
animation = [
|
animation = [
|
||||||
"global, 1, 10, default"
|
"global, 1, 10, default"
|
||||||
"border, 1, 5.39, easeOutQuint"
|
"border, 1, 5.39, easeOutQuint"
|
||||||
@@ -63,26 +63,26 @@
|
|||||||
"workspacesIn, 1, 1.21, almostLinear, fade"
|
"workspacesIn, 1, 1.21, almostLinear, fade"
|
||||||
"workspacesOut, 1, 1.94, almostLinear, fade"
|
"workspacesOut, 1, 1.94, almostLinear, fade"
|
||||||
"zoomFactor, 1, 7, quick"
|
"zoomFactor, 1, 7, quick"
|
||||||
]
|
];
|
||||||
}
|
};
|
||||||
dwindle = {
|
dwindle = {
|
||||||
pseudotile = true;
|
pseudotile = true;
|
||||||
preserve_split = true;
|
preserve_split = true;
|
||||||
}
|
};
|
||||||
master = {
|
# master = {
|
||||||
new_status = master
|
# new_status = master;
|
||||||
}
|
# };
|
||||||
misc = {
|
misc = {
|
||||||
force_default_wallpaper = -1;
|
force_default_wallpaper = -1;
|
||||||
disable_hyprland_logo = false;
|
disable_hyprland_logo = false;
|
||||||
enable_anr_dialog = false;
|
enable_anr_dialog = false;
|
||||||
}
|
};
|
||||||
input = {
|
input = {
|
||||||
kb_layout = gb;
|
kb_layout = "gb";
|
||||||
follow_mouse = 2;
|
follow_mouse = 2;
|
||||||
sensitivity = -0.5;
|
sensitivity = -0.5;
|
||||||
}
|
};
|
||||||
"$mainMod = SUPER"
|
"$mainMod" = "SUPER";
|
||||||
binds = [
|
binds = [
|
||||||
"$mainMod, Q, exec, $terminal"
|
"$mainMod, Q, exec, $terminal"
|
||||||
"$mainMod, C, killactive,"
|
"$mainMod, C, killactive,"
|
||||||
@@ -105,18 +105,20 @@
|
|||||||
"$mainMod, mouse:272, movewindow"
|
"$mainMod, mouse:272, movewindow"
|
||||||
"$mainMod, mouse:273, resizewindow"
|
"$mainMod, mouse:273, resizewindow"
|
||||||
", F8, sendshortcut, , F8, class:^(com\.obsproject\.Studio)$"
|
", F8, sendshortcut, , F8, class:^(com\.obsproject\.Studio)$"
|
||||||
|
"$mainMod, 0, workspace, 10"
|
||||||
|
"$mainMod, SHIFT, 0, movetoworkspace, 10"
|
||||||
] ++ (
|
] ++ (
|
||||||
builtins.concatLists (
|
builtins.concatLists (
|
||||||
builtins.genLists(i: let ws = i + 1 in [
|
builtins.genList(i: let ws = i + 1; in [
|
||||||
"$mainMod, ${toString i}, workspace, ${toString ws}"
|
"$mainMod, ${toString ws}, workspace, ${toString ws}"
|
||||||
"$mainMod SHIFT, ${toString i}, movetoworkspace, ${toString ws}"
|
"$mainMod SHIFT, ${toString ws}, movetoworkspace, ${toString ws}"
|
||||||
]
|
]
|
||||||
) 9
|
) 9
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
workspace = [
|
workspace = [
|
||||||
"name:2, monitor:DP-3"
|
"name:2, monitor:DP-3"
|
||||||
]
|
];
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"suppressevent maximize, class:.*"
|
"suppressevent maximize, class:.*"
|
||||||
"workspace 5 silent, class:^(gamescope)$"
|
"workspace 5 silent, class:^(gamescope)$"
|
||||||
@@ -125,12 +127,12 @@
|
|||||||
"workspace 8 silent, class:^(vesktop)$"
|
"workspace 8 silent, class:^(vesktop)$"
|
||||||
"workspace 8 silent, class:^(org.telegram.desktop)$"
|
"workspace 8 silent, class:^(org.telegram.desktop)$"
|
||||||
"workspace 10 silent, class:^(com\.obsproject\.Studio)$"
|
"workspace 10 silent, class:^(com\.obsproject\.Studio)$"
|
||||||
]
|
];
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"noinitialfocus, class:.*"
|
"noinitialfocus, class:.*"
|
||||||
]
|
];
|
||||||
# exec-once = [
|
# exec-once = [
|
||||||
# ];
|
# ];
|
||||||
# we need to auto launch: quickshell, steam, ar_rpc (maybe), vesktop, telegram, qbit, and obs
|
# we need to auto launch: quickshell, steam, ar_rpc (maybe), vesktop, telegram, qbit, and obs
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
8
nix/modules/neovim/home.nix
Normal file
8
nix/modules/neovim/home.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ inputs, pkgs, ... }:
|
||||||
|
let
|
||||||
|
|
||||||
|
in {
|
||||||
|
home.packages = [
|
||||||
|
pkgs.neovim
|
||||||
|
];
|
||||||
|
}
|
||||||
1
nix/modules/neovim/result
Symbolic link
1
nix/modules/neovim/result
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/nix/store/7kpkw7k1pdp5ryd7mv3p2glhsbjqlj8z-home-manager-generation
|
||||||
24
nix/modules/quickshell/home.nix
Normal file
24
nix/modules/quickshell/home.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ inputs, config, pkgs, system, ... }:
|
||||||
|
let
|
||||||
|
pkg = inputs.quickshell.packages.${system}.quickshell;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
xdg.configFile."quickshell" = {
|
||||||
|
recursive = true;
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink "/home/doloro/dotfiles/quickshell/";
|
||||||
|
};
|
||||||
|
systemd.user.services.quickshell = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Quickshell daemon";
|
||||||
|
After = [ "hyprland-session.target" ];
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkg}/bin/quickshell";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
/nix/store/rw16biqjpvfsg51rxvgsawfpxfsbgf9k-home-manager-generation
|
/nix/store/pb01777vslzr04k4jzi9kdyn8qk3c5a1-home-manager-generation
|
||||||
Reference in New Issue
Block a user