Compare commits
4
Commits
73f9104b24
...
dendritic
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38e15dc779 | ||
|
|
f55767ef6b | ||
|
|
3dfc69537c | ||
|
|
31c7f05ff1 |
No files matched your search
@@ -1,12 +1,11 @@
|
||||
# DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file.
|
||||
# Use `nix run .#write-flake` to regenerate it.
|
||||
{
|
||||
description = "A simple NixOS flake";
|
||||
|
||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
||||
|
||||
inputs = {
|
||||
# NixOS official package source, using the nixos-26.05 branch here
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-file.url = "github:vic/flake-file";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
helium-browser = {
|
||||
url = "github:schembriaiden/helium-browser-nix-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -15,12 +14,12 @@
|
||||
url = "github:nix-community/home-manager/release-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
import-tree.url = "github:vic/import-tree";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim/nixos-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
flake-file.url = "github:vic/flake-file";
|
||||
import-tree.url = "github:vic/import-tree";
|
||||
};
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.nixos-desktop = {
|
||||
imports =
|
||||
with inputs.self.modules.nixos;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
system-desktop
|
||||
i18n-de
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
flake.modules.nixos.nixos-desktop = {
|
||||
networking.hostName = "nixos-desktop";
|
||||
};
|
||||
}
|
||||
@@ -1,14 +1,16 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.nixos-desktop = { config, ... } : {
|
||||
flake.modules.nixos.nixos-desktop = {
|
||||
imports = with inputs.self.modules.nixos; [
|
||||
snurm
|
||||
steam
|
||||
];
|
||||
|
||||
home-manager.users.snurm = { config, ... }: {
|
||||
home-manager.users.snurm = {
|
||||
imports =
|
||||
with inputs.self.modules.homeManager;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
vesktop
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -263,6 +263,7 @@ local mainMod = "SUPER" -- Sets "Windows" key as main modifier
|
||||
|
||||
-- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more
|
||||
hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal))
|
||||
hl.bind(mainMod .. " + T", hl.dsp.exec_cmd("kitty"))
|
||||
local closeWindowBind = hl.bind(mainMod .. " + C", hl.dsp.window.close())
|
||||
-- closeWindowBind:set_enabled(false)
|
||||
hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"))
|
||||
@@ -283,6 +284,8 @@ hl.bind(mainMod .. " + SHIFT + L", hl.dsp.window.move({ direction = "right" }))
|
||||
hl.bind(mainMod .. " + SHIFT + K", hl.dsp.window.move({ direction = "up" }))
|
||||
hl.bind(mainMod .. " + SHIFT + J", hl.dsp.window.move({ direction = "down" }))
|
||||
|
||||
-- fullscreen
|
||||
hl.bind(mainMod .. " + SHIFT + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" }))
|
||||
-- Switch workspaces with mainMod + [0-9]
|
||||
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
for i = 1, 10 do
|
||||
|
||||
@@ -3,9 +3,15 @@
|
||||
programs.hyprland.enable = true;
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
#maybe remove
|
||||
home-manager.sharedModules = [
|
||||
inputs.self.modules.homeManager.hyprland
|
||||
];
|
||||
imports =
|
||||
with inputs.self.modules.nixos;
|
||||
[
|
||||
screenshot
|
||||
];
|
||||
};
|
||||
|
||||
flake.modules.homeManager.hyprland = { pkgs, ... }: {
|
||||
|
||||
@@ -5,16 +5,9 @@
|
||||
enableGitIntegration = true;
|
||||
font = {
|
||||
name = "JetBrains Mono";
|
||||
size = 10;
|
||||
size = 20;
|
||||
};
|
||||
shellIntegration.enableZshIntegration = true;
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
enable_auto_bell = false;
|
||||
mouse_hide_wait = "-1.0";
|
||||
background_opacity = "0.5";
|
||||
background_blur = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -11,6 +11,23 @@
|
||||
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
|
||||
opts = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
shiftwidth = 2;
|
||||
tabstop = 2;
|
||||
scrolloff = 20;
|
||||
cursorline = true;
|
||||
clipboard = "unnamedplus";
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = [ "" "i" "t" ];
|
||||
key = "fj";
|
||||
action = "<ESC>";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
flake.modules.nixos.screenshot = { pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
slurp
|
||||
grim
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
flake.modules.nixos.steam = { pkgs, ... }: {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
extraCompatPackages = [
|
||||
pkgs.proton-ge-bin
|
||||
];
|
||||
protontricks = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
flake.modules.homeManager.vesktop = {
|
||||
programs.vesktop = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -7,9 +7,6 @@
|
||||
};
|
||||
|
||||
flake.modules.homeManager.zsh = { pkgs, ... }: {
|
||||
imports = with inputs.self.modules.homeManager; [
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ inputs, ... }: {
|
||||
flake-file.inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs-unstable";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
flake.modules.nixos.system-base = { pkgs, ... }: {
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
(self.factory.user "snurm" true)
|
||||
{
|
||||
nixos.snurm = {
|
||||
imports =
|
||||
with self.modules.nixos;
|
||||
with self.factory;
|
||||
[
|
||||
|
||||
];
|
||||
|
||||
users.users.snurm.extraGroups = [
|
||||
"networkmanager"
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user