Compare commits

..

No commits in common. "2b90fac85f2a56da2d678a5c408d71efd80c0481" and "cb262d4cf54629b58fa15de6357824729a5c49d8" have entirely different histories.

9 changed files with 32 additions and 87 deletions

View file

@ -664,26 +664,6 @@
"type": "github" "type": "github"
} }
}, },
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1696736548,
"narHash": "sha256-Dg0gJ9xVXud55sAbXspMapFYZOpVAldQQo7MFp91Vb0=",
"owner": "Mic92",
"repo": "nix-index-database",
"rev": "2902dc66f64f733bfb45754e984e958e9fe7faf9",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "nix-index-database",
"type": "github"
}
},
"nix-lazy-nvim": { "nix-lazy-nvim": {
"locked": { "locked": {
"lastModified": 1694868321, "lastModified": 1694868321,
@ -709,17 +689,16 @@
"nixpkgs-regression": "nixpkgs-regression" "nixpkgs-regression": "nixpkgs-regression"
}, },
"locked": { "locked": {
"lastModified": 1685886360, "lastModified": 1695405275,
"narHash": "sha256-mQ6Eryo7CFkt8KHVJcbg0HfXMGFrjMq04XnL9b9TsX0=", "narHash": "sha256-R4TX73TAzrW03Rdsa4HNz5ASKx5S1AKa/3SAntUHglg=",
"owner": "privatevoid-net", "owner": "privatevoid-net",
"repo": "nix-super", "repo": "nix-super",
"rev": "518ce777422c6ade8988a3dd1bebb407a08f3851", "rev": "cae2c834f2a19db35cd46d233f5b59086b24a6f1",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "privatevoid-net", "owner": "privatevoid-net",
"repo": "nix-super", "repo": "nix-super",
"rev": "518ce777422c6ade8988a3dd1bebb407a08f3851",
"type": "github" "type": "github"
} }
}, },
@ -967,21 +946,6 @@
"type": "github" "type": "github"
} }
}, },
"nur": {
"locked": {
"lastModified": 1696923989,
"narHash": "sha256-cANE1rSfOb3yxQ+bH7CTXZbj34AnQyzu0g22JDbLUpE=",
"owner": "nix-community",
"repo": "NUR",
"rev": "0268065df586f8cae6b648432ebbda3b5ac96503",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"nvim-lspconfig": { "nvim-lspconfig": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1089,12 +1053,10 @@
"impermanence": "impermanence", "impermanence": "impermanence",
"master": "master", "master": "master",
"neovim-nightly-overlay": "neovim-nightly-overlay", "neovim-nightly-overlay": "neovim-nightly-overlay",
"nix-index-database": "nix-index-database",
"nix-lazy-nvim": "nix-lazy-nvim", "nix-lazy-nvim": "nix-lazy-nvim",
"nix-super": "nix-super", "nix-super": "nix-super",
"nixpkgs": "nixpkgs_8", "nixpkgs": "nixpkgs_8",
"none-ls-nvim": "none-ls-nvim", "none-ls-nvim": "none-ls-nvim",
"nur": "nur",
"nvim-lspconfig": "nvim-lspconfig", "nvim-lspconfig": "nvim-lspconfig",
"nvim-puppeteer": "nvim-puppeteer", "nvim-puppeteer": "nvim-puppeteer",
"nvim-treesitter": "nvim-treesitter", "nvim-treesitter": "nvim-treesitter",

View file

@ -16,13 +16,10 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
stable.url = "github:nixos/nixpkgs/nixos-23.05"; stable.url = "github:nixos/nixpkgs/nixos-23.05";
nur.url = "github:nix-community/NUR";
nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
# Programs # Programs
nix-super.inputs.nixpkgs.follows = "stable"; nix-super.inputs.nixpkgs.follows = "stable";
nix-super.url = "github:privatevoid-net/nix-super/518ce777422c6ade8988a3dd1bebb407a08f3851"; # NOTE: because nix 1.18 is borked nix-super.url = "github:privatevoid-net/nix-super";
rofi-wayland.flake = false; rofi-wayland.flake = false;
rofi-wayland.url = "github:lbonn/rofi/wayland"; rofi-wayland.url = "github:lbonn/rofi/wayland";
timers.url = "git+https://gitea.moritzboeh.me/moritz/timers.git"; timers.url = "git+https://gitea.moritzboeh.me/moritz/timers.git";
@ -87,10 +84,6 @@
inherit (prev) system; inherit (prev) system;
overlays = defaultOverlays; overlays = defaultOverlays;
}; };
nur = import inputs.nur {
pkgs = prev;
nurpkgs = prev;
};
} }
) )
]; ];
@ -200,7 +193,6 @@
inputs.disko.nixosModules.default inputs.disko.nixosModules.default
inputs.home-manager.nixosModule inputs.home-manager.nixosModule
inputs.impermanence.nixosModules.impermanence inputs.impermanence.nixosModules.impermanence
inputs.nix-index-database.nixosModules.nix-index
path path
]; ];
}) })

View file

@ -41,7 +41,6 @@
".local/share/nvim" ".local/share/nvim"
".local/share/zoxide" ".local/share/zoxide"
".local/state/nvim" ".local/state/nvim"
".config/kdeconnect"
".mozilla" ".mozilla"
"Documents" "Documents"
"Downloads" "Downloads"

View file

@ -173,8 +173,8 @@ in
programs = { programs = {
mtr.enable = true; mtr.enable = true;
command-not-found.enable = true;
starship.enable = true; starship.enable = true;
command-not-found.enable = false;
}; };
services = { services = {

View file

@ -1,7 +1,6 @@
{ config { config
, lib , lib
, inputs , inputs
, pkgs
, ... , ...
}: }:
@ -34,27 +33,13 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.moritz.programs.firefox = { home-manager.users.moritz.programs.firefox = {
enable = true; enable = true;
profiles."default" = { profiles."default".extraConfig = mkIf cfg.arkenfox.enable ''
extraConfig = mkIf cfg.arkenfox.enable ''
// Arkenfox user.js // Arkenfox user.js
${arkenfox} ${arkenfox}
// Overrides // Overrides
${cfg.arkenfox.overrides} ${cfg.arkenfox.overrides}
''; '';
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
darkreader
firefox-color
istilldontcareaboutcookies
kagi-search
keepassxc-browser
languagetool
multi-account-containers
ublock-origin
wikiwand-wikipedia-modernized
vimium
];
};
}; };
}; };
} }

View file

@ -111,10 +111,10 @@ in
} }
misc { misc {
# disable_hypr_chan = true
vrr = 1 vrr = 1
mouse_move_enables_dpms = true mouse_move_enables_dpms = true
key_press_enables_dpms = true key_press_enables_dpms = true
force_default_wallpaper = 0
} }
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more

View file

@ -55,10 +55,15 @@ in
}; };
home-manager.users.moritz = { home-manager.users.moritz = {
# import home-manager module
imports = [ inputs.hyprland.homeManagerModules.default ];
# enable home-manager module # enable home-manager module
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = hyprland; package = hyprland;
recommendedEnvironment = true;
extraConfig = import ./_config.nix args; extraConfig = import ./_config.nix args;
}; };
@ -128,7 +133,7 @@ in
timeout = 30 * 60; timeout = 30 * 60;
command = "${pkgs.systemd}/bin/systemctl suspend-and-hibernate"; command = "${pkgs.systemd}/bin/systemctl suspend-and-hibernate";
}; };
systemdTarget = "graphical-session.target"; systemdTarget = "hyprland-session.target";
}; };
systemd.user.services.nextcloud-client.Service = { systemd.user.services.nextcloud-client.Service = {
@ -137,11 +142,19 @@ in
}; };
}; };
# adds pam module for swaylock # adds pam module for swaylock
security.pam.services.swaylock = { }; security.pam.services.swaylock = { };
# only consider graphical-session.target started when hyprland-sesstion.target is reached
systemd.user.targets.hyprland-session = {
partOf = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
before = [ "graphical-session.target" ];
};
systemd.user.services.xdg-desktop-portal-hyprland = { systemd.user.services.xdg-desktop-portal-hyprland = {
after = [ "hyprland-session.target" ]; after = [ "hyrpland-session.target" ];
requiredBy = [ "xdg-desktop-portal.service" ]; requiredBy = [ "xdg-desktop-portal.service" ];
}; };

View file

@ -11,10 +11,4 @@ final: prev:
}); });
timers = inputs.timers.packages.${prev.system}.default; timers = inputs.timers.packages.${prev.system}.default;
hyprland = inputs.hyprland.packages.${prev.system}.default; hyprland = inputs.hyprland.packages.${prev.system}.default;
xorg = prev.xorg // {
lndir = prev.xorg.lndir.overrideAttrs (_: {
meta.mainProgram = "lndir";
});
};
} }

View file

@ -6,25 +6,25 @@ with lib.my;
vimPlugins = prev.vimPlugins // { vimPlugins = prev.vimPlugins // {
inherit (inputs.codeium-nvim.packages.${prev.system}.vimPlugins) codeium-nvim; inherit (inputs.codeium-nvim.packages.${prev.system}.vimPlugins) codeium-nvim;
smartcolumn-nvim = prev.vimUtils.buildVimPlugin { smartcolumn-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "smartcolumn-nvim"; pname = "smartcolumn-nvim";
version = mkVersionInput inputs.smartcolumn-nvim; version = mkVersionInput inputs.smartcolumn-nvim;
src = inputs.smartcolumn-nvim; src = inputs.smartcolumn-nvim;
}; };
telekasten-nvim = prev.vimUtils.buildVimPlugin { telekasten-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "telekasten-nvim"; pname = "telekasten-nvim";
version = mkVersionInput inputs.telekasten-nvim; version = mkVersionInput inputs.telekasten-nvim;
src = inputs.telekasten-nvim; src = inputs.telekasten-nvim;
}; };
hmts-nvim = prev.vimUtils.buildVimPlugin { hmts-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "hmts-nvim"; pname = "hmts-nvim";
version = mkVersionInput inputs.hmts-nvim; version = mkVersionInput inputs.hmts-nvim;
src = inputs.hmts-nvim; src = inputs.hmts-nvim;
}; };
actions-preview-nvim = prev.vimUtils.buildVimPlugin { actions-preview-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "actions-preview-nvim"; pname = "actions-preview-nvim";
version = mkVersionInput inputs.actions-preview-nvim; version = mkVersionInput inputs.actions-preview-nvim;
src = inputs.actions-preview-nvim; src = inputs.actions-preview-nvim;
@ -46,7 +46,7 @@ with lib.my;
src = inputs.nvim-lspconfig; src = inputs.nvim-lspconfig;
}); });
nvim-puppeteer = prev.vimUtils.buildVimPlugin { nvim-puppeteer = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "nvim-puppeteer"; pname = "nvim-puppeteer";
version = mkVersionInput inputs.nvim-puppeteer; version = mkVersionInput inputs.nvim-puppeteer;
src = inputs.nvim-puppeteer; src = inputs.nvim-puppeteer;