diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89b3a77 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +secrets.nix diff --git a/flake.lock b/flake.lock index b97a005..f9e614b 100644 --- a/flake.lock +++ b/flake.lock @@ -23,6 +23,22 @@ "type": "github" } }, + "assets": { + "locked": { + "lastModified": 1776095917, + "narHash": "sha256-JqmGzwBJQVFAfwXCs8/YrT4pwxKwuWtOgL1ESM/vDUM=", + "ref": "assets", + "rev": "e3ca6845dcae6c3d789103aca7550f9b33951f47", + "revCount": 3, + "type": "git", + "url": "https://dario48.site/git/Dario48/NixOs.git" + }, + "original": { + "ref": "assets", + "type": "git", + "url": "https://dario48.site/git/Dario48/NixOs.git" + } + }, "darwin": { "inputs": { "nixpkgs": [ @@ -119,12 +135,37 @@ "type": "github" } }, + "plasma-manager": { + "inputs": { + "home-manager": [ + "home-manager" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1775856943, + "narHash": "sha256-b7Mp7P+q2Md5AGt4rjHfMcBykzMumFTen10ST++AuTU=", + "owner": "nix-community", + "repo": "plasma-manager", + "rev": "a524a6160e6df89f7673ba293cf7d78b559eb1a5", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "plasma-manager", + "type": "github" + } + }, "root": { "inputs": { "agenix": "agenix", + "assets": "assets", "home-manager": "home-manager_2", "neovim-dotfiles": "neovim-dotfiles", "nixpkgs": "nixpkgs", + "plasma-manager": "plasma-manager", "zen-browser": "zen-browser" } }, diff --git a/flake.nix b/flake.nix index d0c9380..81aec0e 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,8 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.home-manager.follows = "home-manager"; }; + + assets.url = "git+https://dario48.site/git/Dario48/NixOs.git?ref=assets"; }; outputs = { @@ -357,68 +359,6 @@ "flakes" ]; - # age.secrets.wg-key-vps = { - # file = "${inputs.self.outPath}/secrets/wg-key-vps.age"; - # # for permission, see man systemd.netdev - # mode = "640"; - # owner = "systemd-network"; - # group = "systemd-network"; - # }; - # networking.useNetworkd = true; - - # systemd.network = { - # enable = true; - - # networks."50-wg0" = { - # matchConfig.Name = "wg0"; - - # address = [ - # "10.81.37.18/32" - # ]; - # }; - - # netdevs."50-wg0" = { - # netdevConfig = { - # Kind = "wireguard"; - # Name = "wg0"; - # }; - - # wireguardConfig = { - # ListenPort = 51820; - - # # ensure file is readable by `systemd-network` user - # PrivateKeyFile = builtins.toFile "privatekey" "cJFKvzb/y0Humt7HEReC4SCaeXp2vxhxrYc7TAW+3l8="; - - # # To automatically create routes for everything in AllowedIPs, - # # add RouteTable=main - # RouteTable = "main"; - - # # FirewallMark marks all packets send and received by wg0 - # # with the number 42, which can be used to define policy rules on these packets. - # FirewallMark = 42; - # }; - # wireguardPeers = [ - # { - # PublicKey = "t57ESdPPbtAtva3L3UfF/IVbJiIbk2SC7Vxd7FIQalI="; - # AllowedIPs = [ - # "10.254.0.0/24" - # "10.60.0.0/14" - # "10.64.0.0/14" - # "10.68.0.0/14" - # "10.80.0.0/16" - # "10.81.0.0/16" - # "10.10.0.0/16" - # "10.11.0.0/16" - # ]; - # Endpoint = "vpn.ad.cyberchallenge.it:51820"; - - # # RouteTable = 1000; - # } - # ]; - # }; - # }; - # networking.firewall.allowedUDPPorts = [ 51820 ]; - # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; @@ -473,20 +413,145 @@ # plasma {{{ plasma = { enable = true; + fonts.fixedWidth = { + family = "IosevkaTerm Nerd Font Mono"; + pointSize = 11; + }; + hotkeys.commands = { + "kitty" = { + name = "launch kitty"; + key = "Alt+Return"; + command = "kitty"; + }; + }; + input = { + keyboard = { + layouts = [ { layout = "eu"; } ]; + options = [ "caps:esc" ]; + }; + mice = [ + { + name = "Logitech USB Optical Mouse"; + vendorId = "046d"; + productId = "c077"; + naturalScroll = true; + } + ]; + touchpads = [ + { + vendorId = "04f3"; + productId = "3298"; + name = "ELAN07C9:00 04F3:3298 Touchpad"; + disableWhileTyping = false; + naturalScroll = true; + } + ]; + }; + krunner = { + position = "top"; + shortcuts.launch = "Meta"; + }; + kscreenlocker = { + appearance.wallpaper = "${inputs.assets.wallpaper}"; + lockOnResume = true; + passwordRequired = true; + }; + kwin = { + borderlessMaximizedWindows = true; + cornerBarrier = false; + effects = { + dimAdminMode.enable = true; + dimInactive.enable = true; + hideCursor = { + enable = true; + hideOnTyping = true; + hideOnInactivity = 5; + }; + #magnifier = { + # enable = true; + # height = 200; + # width = 355; + #}; + shakeCursor.enable = true; + snapHelper.enable = true; + zoom = { + enable = true; + mousePointer = "keep"; + mouseTracking = "centered"; + scrollGestureModKeys = "Meta+Ctrl"; + }; + }; + nightLight = { + enable = true; + mode = "constant"; + temperature = { + day = 5400; + night = 5400; + }; + }; + }; + panels = [ + { + alignment = "center"; + floating = false; + hiding = "none"; + lengthMode = "fill"; + location = "top"; + offset = 0; + opacity = "translucent"; + screen = "all"; + widgets = [ + "org.kde.plasma.kickoff" + "org.kde.plasma.pager" + "org.kde.plasma.icontasks" + "org.kde.plasma.marginsseparator" + { + systemTray.items = { + shown = [ + "org.kde.plasma.notifications" + "org.kde.plasma.clipboard" + "org.kde.plasma.mediacontroller" + "org.kde.plasma.networkmanagement" + "org.kde.plasma.volume" + "org.kde.plasma.battery" + "org.kde.plasma.brightness" + "org.kde.plasma.bluetooth" + ]; + hidden = [ + "org.kde.plasma.manage-inputmethod" + "org.kde.plasma.cameraindicator" + "org.kde.plasma.keyboardlayout" + "org.kde.plasma.devicenotifier" + "org.kde.kscreen" + "org.kde.plasma.keyboardindicator" + "org.kde.plasma.printmanager" + "org.kde.plasma.weather" + ]; + }; + } + "org.kde.plasma.digitalclock" + "org.kde.plasma.showdesktop" + "org.kde.plasma.systemmonitor.cpucore" + ]; + } + ]; + powerdevil.AC.whenLaptopLidClosed = "hibernate"; + session.sessionRestore.restoreOpenApplicationsOnLogin = "onLastLogout"; + windows.allowWindowsToRememberPositions = true; workspace = { - lookAndFeel = "org.kde.breezedark.desktop"; colorScheme = "SweetAmbarBlue"; cursor = { theme = "breeze_cursors"; size = 24; }; iconTheme = "Breeze"; - souneTheme = "ocean"; + soundTheme = "ocean"; theme = "Sweet-Ambar-Blue"; - - wallpaper = " - - "; + wallpaper = "${inputs.assets.wallpaper}"; + windowDecorations = { + library = "org.kde.kwin.aurorae.v2"; + theme = "__aurorae__svg__Sweet-ambar-blue"; + }; }; }; # }}}