diff --git a/home/alacritty.yml b/home/alacritty.yml new file mode 100644 index 0000000..d9c0207 --- /dev/null +++ b/home/alacritty.yml @@ -0,0 +1,42 @@ +scrolling: + history: 16384 + +font: + normal: + family: Fira Code + size: 8 + +shell: + program: /run/current-system/sw/bin/fish + +# Colors (Hyper) +colors: + # Default colors + primary: + background: '0x000000' + foreground: '0xffffff' + cursor: + text: '0xF81CE5' + cursor: '0xffffff' + + # Normal colors + normal: + black: '0x000000' + red: '0xfe0100' + green: '0x33ff00' + yellow: '0xfeff00' + blue: '0x0066ff' + magenta: '0xcc00ff' + cyan: '0x00ffff' + white: '0xd0d0d0' + + # Bright colors + bright: + black: '0x808080' + red: '0xfe0100' + green: '0x33ff00' + yellow: '0xfeff00' + blue: '0x0066ff' + magenta: '0xcc00ff' + cyan: '0x00ffff' + white: '0xFFFFFF' diff --git a/home/config b/home/config new file mode 100644 index 0000000..834ff92 --- /dev/null +++ b/home/config @@ -0,0 +1,6 @@ +daemonize +ignore-empty-password +image=/home/artemis/.config/swaylock/xp.jpg +indicator-caps-lock +show-failed-attempts +show-keyboard-layout diff --git a/home/default.nix b/home/default.nix index d494aa4..b50b24e 100644 --- a/home/default.nix +++ b/home/default.nix @@ -7,36 +7,22 @@ useGlobalPkgs = true; }; home-manager.users.artemis = { pkgs, ... }: { - programs.git = { - enable = true; - package = pkgs.gitAndTools.gitFull; - userName = "Artemis Tosini"; - userEmail = "me@artem.ist"; - signing = { - key = "D2173817C3E4B155EA8FFF49A54531E0D32143ED"; - signByDefault = true; - }; - ignores = [ "compile_commands.json" ".clangd/" ".idea/" ]; - lfs.enable = true; - delta.enable = true; - extraConfig = { - transfer.fsckObjects = true; + imports = [ + ./git.nix + ]; - advice.detachedHead = false; - format.signOff = true; - init.defaultBranch = "canon"; - log.showSignature = true; - mailmap.file = "${../private/mailmap}"; - - credential.helper = "!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@"; - sendemail = { - smtpServer = "smtp.fastmail.com"; - smtpUser = "me@artem.ist"; - smtpEncryption = "tls"; - smtpServerPort = 587; - confirm = "auto"; - }; - }; + xdg.enable = true; + xdg.configFile = { + "alacritty/alacritty.yml".source = ./alacritty.yml; + "mpv/mpv.conf".source = ./mpv.conf; + "swaylock/config".text = '' + daemonize + ignore-empty-password + indicator-caps-lock + show-failed-attempts + show-keyboard-layout + image=${./xp.jpg} + ''; }; }; } diff --git a/home/git.nix b/home/git.nix new file mode 100644 index 0000000..9797ca0 --- /dev/null +++ b/home/git.nix @@ -0,0 +1,34 @@ +{ pkgs, ... }: +{ + programs.git = { + enable = true; + package = pkgs.gitAndTools.gitFull; + userName = "Artemis Tosini"; + userEmail = "me@artem.ist"; + signing = { + key = "D2173817C3E4B155EA8FFF49A54531E0D32143ED"; + signByDefault = true; + }; + ignores = [ "compile_commands.json" ".clangd/" ".idea/" ]; + lfs.enable = true; + delta.enable = true; + extraConfig = { + transfer.fsckObjects = true; + + advice.detachedHead = false; + format.signOff = true; + init.defaultBranch = "canon"; + log.showSignature = true; + mailmap.file = "${../private/mailmap}"; + + credential.helper = "!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@"; + sendemail = { + smtpServer = "smtp.fastmail.com"; + smtpUser = "me@artem.ist"; + smtpEncryption = "tls"; + smtpServerPort = 587; + confirm = "auto"; + }; + }; + }; +} diff --git a/home/mpv.conf b/home/mpv.conf new file mode 100644 index 0000000..5f0190e --- /dev/null +++ b/home/mpv.conf @@ -0,0 +1,7 @@ +gpu-context=wayland +hwdec=vaapi +vo=gpu +profile=gpu-hq +scale=ewa_lanczossharp +cscale=ewa_lanczossharp +slang=eng diff --git a/home/xp.jpg b/home/xp.jpg new file mode 100644 index 0000000..cdd4527 Binary files /dev/null and b/home/xp.jpg differ