task | reformatted with nixfmt
This commit is contained in:
parent
e3fea64660
commit
c3a0a0847f
119 changed files with 1010 additions and 2135 deletions
96
flake.nix
96
flake.nix
|
|
@ -14,41 +14,25 @@
|
|||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
};
|
||||
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
nix,
|
||||
outputs = inputs@{ self, nixpkgs, nix,
|
||||
# nixos-cosmic,
|
||||
nixos-hardware,
|
||||
home-manager,
|
||||
catppuccin,
|
||||
colmena,
|
||||
...
|
||||
}: let
|
||||
nixos-hardware, home-manager, catppuccin, colmena, ... }:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
lib = nixpkgs.lib // home-manager.lib;
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
|
||||
pkgsFor = lib.genAttrs systems (
|
||||
system:
|
||||
pkgsFor = lib.genAttrs systems (system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
}
|
||||
);
|
||||
});
|
||||
in {
|
||||
inherit lib;
|
||||
colmena = {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
nixpkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
# ace = import ./hosts/ace/colmena.nix;
|
||||
# eve = import ./hosts/eve/colmena.nix;
|
||||
|
|
@ -66,60 +50,42 @@
|
|||
# clients
|
||||
ace = lib.nixosSystem {
|
||||
modules = [ ./hosts/ace ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
dragon = lib.nixosSystem {
|
||||
modules = [ ./hosts/dragon ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
eve = lib.nixosSystem {
|
||||
modules = [ ./hosts/eve ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
loki = lib.nixosSystem {
|
||||
modules = [ ./hosts/loki ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
|
||||
pocket2 = lib.nixosSystem {
|
||||
modules = [ ./hosts/pocket2 ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
smaug = lib.nixosSystem {
|
||||
modules = [ ./hosts/smaug ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
t2 = lib.nixosSystem {
|
||||
modules = [ ./hosts/t2 ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
|
||||
# servers
|
||||
display = lib.nixosSystem {
|
||||
modules = [ ./hosts/display ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
fred = lib.nixosSystem {
|
||||
modules = [ ./hosts/fred ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
vm = lib.nixosSystem {
|
||||
modules = [
|
||||
|
|
@ -127,45 +93,31 @@
|
|||
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
|
||||
./hosts/vm
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
harper2 = lib.nixosSystem {
|
||||
modules = [ ./hosts/harper2 ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
harper = lib.nixosSystem {
|
||||
modules = [ ./hosts/harper ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
nuwww = lib.nixosSystem {
|
||||
modules = [ ./hosts/nuwww ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
pihole = lib.nixosSystem {
|
||||
modules = [ ./hosts/pihole ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
www2 = lib.nixosSystem {
|
||||
modules = [ ./hosts/www2 ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
w1 = lib.nixosSystem {
|
||||
modules = [ ./hosts/w1 ];
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
# w2 = lib.nixosSystem {
|
||||
# modules = [./hosts/w2];
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [ ./bash_complition.nix ];
|
||||
home.file.".bash_local".source = files/bash/bash_local;
|
||||
home.file.".bash_aliases".source = files/bash/bash_aliases;
|
||||
|
|
@ -11,7 +7,8 @@
|
|||
home.file.".bash_keychain".source = files/bash/bash_keychain;
|
||||
home.file.".bash_logout".source = files/bash/bash_logout;
|
||||
home.file.".bash_motd".source = files/bash/bash_motd;
|
||||
home.file.".bash_motd_ownscript.sh".source = files/bash/bash_motd_ownscript.sh;
|
||||
home.file.".bash_motd_ownscript.sh".source =
|
||||
files/bash/bash_motd_ownscript.sh;
|
||||
home.file.".bash_profile".source = files/bash/bash_profile;
|
||||
home.file.".bashrc".source = files/bash/bashrc;
|
||||
home.file.".bash_ssh".source = files/bash/bash_ssh;
|
||||
|
|
|
|||
|
|
@ -10,36 +10,36 @@
|
|||
_init_completion -s || return
|
||||
|
||||
local i mode=normal
|
||||
[[ ''$1 == *doasedit ]] && mode=edit
|
||||
[[ $1 == *doasedit ]] && mode=edit
|
||||
|
||||
[[ ''$mode == normal ]] &&
|
||||
[[ $mode == normal ]] &&
|
||||
for ((i = 1; i <= cword; i++)); do
|
||||
if [[ ''${words[i]} != -* ]]; then
|
||||
local PATH=''$PATH:/sbin:/usr/sbin:/usr/local/sbin
|
||||
local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
|
||||
local root_command=''${words[i]}
|
||||
_command_offset ''$i
|
||||
_command_offset $i
|
||||
return
|
||||
fi
|
||||
[[ ''${words[i]} == -@(!(-*)[uUgCp]) ]] &&
|
||||
((i++))
|
||||
done
|
||||
|
||||
case "''$prev" in
|
||||
case "$prev" in
|
||||
-u)
|
||||
COMPREPLY=(''$(compgen -u -- "''$cur"))
|
||||
COMPREPLY=($(compgen -u -- "$cur"))
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
''$split && return
|
||||
$split && return
|
||||
|
||||
if [[ ''$cur == -* ]]; then
|
||||
local opts=''$(_parse_help "''$1")
|
||||
COMPREPLY=(''$(compgen -W ' ''${opts:-''$(_parse_usage "''$1")}' -- "''$cur"))
|
||||
if [[ $cur == -* ]]; then
|
||||
local opts=$(_parse_help "$1")
|
||||
COMPREPLY=($(compgen -W ' ''${opts:-$(_parse_usage "$1")}' -- "$cur"))
|
||||
[[ ''${COMPREPLY-} == *= ]] && compopt -o nospace
|
||||
return
|
||||
fi
|
||||
if [[ ''$mode == edit ]]; then
|
||||
if [[ $mode == edit ]]; then
|
||||
_filedir
|
||||
fi
|
||||
} &&
|
||||
|
|
@ -105,26 +105,26 @@
|
|||
taskcommand='task rc.verbose:nothing rc.confirmation:no rc.hooks:off'
|
||||
|
||||
_task_get_tags() {
|
||||
''$taskcommand _tags
|
||||
$taskcommand _tags
|
||||
}
|
||||
|
||||
_task_get_config() {
|
||||
''$taskcommand _config
|
||||
$taskcommand _config
|
||||
}
|
||||
|
||||
_task_offer_priorities() {
|
||||
COMPREPLY=( ''$(compgen -W "L M H" -- ''${cur/*:/}) )
|
||||
COMPREPLY=( $(compgen -W "L M H" -- ''${cur/*:/}) )
|
||||
}
|
||||
|
||||
_task_offer_projects() {
|
||||
COMPREPLY=( ''$(compgen -W "''$(''$taskcommand _projects)" -- ''${cur/*:/}) )
|
||||
COMPREPLY=( $(compgen -W "$($taskcommand _projects)" -- ''${cur/*:/}) )
|
||||
}
|
||||
|
||||
_task_offer_contexts() {
|
||||
COMPREPLY=( ''$(compgen -W "''$(''$taskcommand _context) define delete list none show" -- ''$cur) )
|
||||
COMPREPLY=( $(compgen -W "$($taskcommand _context) define delete list none show" -- $cur) )
|
||||
}
|
||||
|
||||
_task_context_alias=''$(''$taskcommand show | grep alias.*context | cut -d' ' -f1 | cut -d. -f2)
|
||||
_task_context_alias=$($taskcommand show | grep alias.*context | cut -d' ' -f1 | cut -d. -f2)
|
||||
|
||||
_task()
|
||||
{
|
||||
|
|
@ -144,25 +144,25 @@
|
|||
# echo "prev='''$prev'"
|
||||
# echo "prev2='''$prev2'"
|
||||
|
||||
abbrev_min=''$(''$taskcommand show | grep "abbreviation.minimum" | awk {'print ''$2'})
|
||||
commands_aliases=''$(echo ''$(''$taskcommand _commands; ''$taskcommand _aliases) | tr " " "\n"|sort|tr "\n" " ")
|
||||
opts="''$commands_aliases ''$(''$taskcommand _columns)"
|
||||
abbrev_min=$($taskcommand show | grep "abbreviation.minimum" | awk {'print $2'})
|
||||
commands_aliases=$(echo $($taskcommand _commands; $taskcommand _aliases) | tr " " "\n"|sort|tr "\n" " ")
|
||||
opts="$commands_aliases $($taskcommand _columns)"
|
||||
|
||||
case "''${prev}" in
|
||||
''$_task_context_alias|cont|conte|contex|context)
|
||||
$_task_context_alias|cont|conte|contex|context)
|
||||
_task_offer_contexts
|
||||
return 0
|
||||
;;
|
||||
:)
|
||||
case "''${prev2}" in
|
||||
pri|prior|priori|priorit|priority)
|
||||
if [ ''${#prev2} -ge ''$abbrev_min ]; then
|
||||
if [ ''${#prev2} -ge $abbrev_min ]; then
|
||||
_task_offer_priorities
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
pro|proj|proje|projec|project)
|
||||
if [ ''${#prev2} -ge ''$abbrev_min ]; then
|
||||
if [ ''${#prev2} -ge $abbrev_min ]; then
|
||||
_task_offer_projects
|
||||
fi
|
||||
return 0
|
||||
|
|
@ -187,13 +187,13 @@
|
|||
:)
|
||||
case "''${prev}" in
|
||||
pri|prior|priori|priorit|priority)
|
||||
if [ ''${#prev} -ge ''$abbrev_min ]; then
|
||||
if [ ''${#prev} -ge $abbrev_min ]; then
|
||||
_task_offer_priorities
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
pro|proj|proje|projec|project)
|
||||
if [ ''${#prev} -ge ''$abbrev_min ]; then
|
||||
if [ ''${#prev} -ge $abbrev_min ]; then
|
||||
_task_offer_projects
|
||||
fi
|
||||
return 0
|
||||
|
|
@ -212,24 +212,24 @@
|
|||
esac
|
||||
;;
|
||||
+*)
|
||||
local tags=''$(_task_get_tags | sed 's/^/+/')
|
||||
COMPREPLY=( ''$(compgen -W "''${tags}" -- ''${cur}) )
|
||||
local tags=$(_task_get_tags | sed 's/^/+/')
|
||||
COMPREPLY=( $(compgen -W "''${tags}" -- ''${cur}) )
|
||||
return 0
|
||||
;;
|
||||
-*)
|
||||
local tags=''$(_task_get_tags | sed 's/^/-/')
|
||||
COMPREPLY=( ''$(compgen -W "''${tags}" -- ''${cur}) )
|
||||
local tags=$(_task_get_tags | sed 's/^/-/')
|
||||
COMPREPLY=( $(compgen -W "''${tags}" -- ''${cur}) )
|
||||
return 0
|
||||
;;
|
||||
rc.*)
|
||||
local config=''$(_task_get_config | sed -e 's/^/rc\./' -e 's/''$/:/')
|
||||
COMPREPLY=( ''$(compgen -W "''${config}" -- ''${cur}) )
|
||||
local config=$(_task_get_config | sed -e 's/^/rc\./' -e 's/$/:/')
|
||||
COMPREPLY=( $(compgen -W "''${config}" -- ''${cur}) )
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
case "''${prev}" in
|
||||
import)
|
||||
COMPREPLY=( ''$(compgen -o "default" -- ''${cur}) )
|
||||
COMPREPLY=( $(compgen -o "default" -- ''${cur}) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
|
@ -238,7 +238,7 @@
|
|||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( ''$(compgen -W "''${opts}" -- ''${cur}) )
|
||||
COMPREPLY=( $(compgen -W "''${opts}" -- ''${cur}) )
|
||||
return 0
|
||||
}
|
||||
complete -o nospace -F _task task
|
||||
|
|
@ -272,7 +272,7 @@
|
|||
|
||||
function __get_help_items()
|
||||
{
|
||||
echo -e "''$( __get_commands ) interval hints date duration dom"
|
||||
echo -e "$( __get_commands ) interval hints date duration dom"
|
||||
}
|
||||
|
||||
function __get_options()
|
||||
|
|
@ -283,7 +283,7 @@
|
|||
function __get_ids()
|
||||
{
|
||||
local count
|
||||
count="''$( timew get dom.tracked.count )"
|
||||
count="$( timew get dom.tracked.count )"
|
||||
if [[ "''${count}" -eq "0" ]] ; then
|
||||
echo ""
|
||||
else
|
||||
|
|
@ -293,12 +293,12 @@
|
|||
|
||||
function __get_tags()
|
||||
{
|
||||
timew tags | tail -n +4 -- | sed -e "s|[[:space:]]*-''$||"
|
||||
timew tags | tail -n +4 -- | sed -e "s|[[:space:]]*-$||"
|
||||
}
|
||||
|
||||
function __get_extensions()
|
||||
{
|
||||
timew extensions | awk '{if(NR>6)print ''$1}'
|
||||
timew extensions | awk '{if(NR>6)print $1}'
|
||||
}
|
||||
|
||||
function __has_entered_id()
|
||||
|
|
@ -314,7 +314,7 @@
|
|||
|
||||
function __has_entered_subcommand()
|
||||
{
|
||||
local subcommands=''$( __get_subcommands "''${1}" )
|
||||
local subcommands=$( __get_subcommands "''${1}" )
|
||||
|
||||
for word in "''${COMP_WORDS[@]}" ; do
|
||||
for cmd in ''${subcommands} ; do
|
||||
|
|
@ -329,7 +329,7 @@
|
|||
|
||||
function __has_entered_help_item()
|
||||
{
|
||||
local items=''$( __get_help_items )
|
||||
local items=$( __get_help_items )
|
||||
|
||||
for word in "''${COMP_WORDS[@]:2}" ; do
|
||||
for item in ''${items} ; do
|
||||
|
|
@ -358,17 +358,17 @@
|
|||
local line wordlist
|
||||
|
||||
declare -a wordlist
|
||||
while IFS=''$'\n' read -r line ; do
|
||||
while IFS=$'\n' read -r line ; do
|
||||
wordlist+=( "''${line}" )
|
||||
done <<< "''$( __get_tags )"
|
||||
done <<< "$( __get_tags )"
|
||||
|
||||
declare -a completions
|
||||
while read -r line ; do
|
||||
completions+=( "''${line}" )
|
||||
done < <( compgen -W "''$(printf '%q ' "''${wordlist[@]}")" -- "''${cur}" 2>/dev/null )
|
||||
done < <( compgen -W "$(printf '%q ' "''${wordlist[@]}")" -- "''${cur}" 2>/dev/null )
|
||||
|
||||
for completion in "''${completions[@]}" ; do
|
||||
COMPREPLY+=( "''$(printf "%q" "''${completion}")" )
|
||||
COMPREPLY+=( "$(printf "%q" "''${completion}")" )
|
||||
done
|
||||
}
|
||||
|
||||
|
|
@ -385,7 +385,7 @@
|
|||
wordlist=""
|
||||
;;
|
||||
annotate|continue|delete|join|lengthen|move|resize|shorten|split)
|
||||
wordlist=''$( __get_ids )
|
||||
wordlist=$( __get_ids )
|
||||
;;
|
||||
export|gaps|start|stop|summary|tags|track)
|
||||
__complete_tag
|
||||
|
|
@ -393,40 +393,40 @@
|
|||
;;
|
||||
modify)
|
||||
if __has_entered_subcommand "''${first}" ; then
|
||||
wordlist=''$( __get_ids )
|
||||
wordlist=$( __get_ids )
|
||||
else
|
||||
wordlist=''$( __get_subcommands "''${first}" )
|
||||
wordlist=$( __get_subcommands "''${first}" )
|
||||
fi
|
||||
;;
|
||||
tag|untag)
|
||||
if __is_entering_id ; then
|
||||
wordlist=''$( __get_ids )
|
||||
wordlist=$( __get_ids )
|
||||
elif __has_entered_id ; then
|
||||
__complete_tag
|
||||
return
|
||||
else
|
||||
wordlist=''$( __get_ids )
|
||||
wordlist=$( __get_ids )
|
||||
fi
|
||||
;;
|
||||
report)
|
||||
wordlist=''$( __get_extensions )
|
||||
wordlist=$( __get_extensions )
|
||||
;;
|
||||
help)
|
||||
if __has_entered_help_item ; then
|
||||
wordlist=""
|
||||
else
|
||||
wordlist=''$( __get_help_items )
|
||||
wordlist=$( __get_help_items )
|
||||
fi
|
||||
;;
|
||||
-*)
|
||||
wordlist=''$( __get_options )
|
||||
wordlist=$( __get_options )
|
||||
;;
|
||||
*)
|
||||
wordlist=''$( __get_commands )
|
||||
wordlist=$( __get_commands )
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=(''$( compgen -W "''${wordlist}" -- "''${cur}" ))
|
||||
COMPREPLY=($( compgen -W "''${wordlist}" -- "''${cur}" ))
|
||||
}
|
||||
|
||||
complete -F _timew timew
|
||||
|
|
|
|||
|
|
@ -1,13 +1,7 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
#home.packages = with pkgs; [ btop ];
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
proc_gradient = false;
|
||||
};
|
||||
settings = { proc_gradient = false; };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.neovim = {
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugins = with pkgs.vimPlugins; [{
|
||||
plugin = bufferline-nvim;
|
||||
type = "lua";
|
||||
config = ''
|
||||
|
|
@ -93,8 +92,7 @@
|
|||
},
|
||||
})
|
||||
'';
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
}
|
||||
# vim: shiftwidth=2 tabstop=2 expandtab
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, config, ... }: {
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
flavor = "mocha";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [
|
||||
./bash.nix
|
||||
./btop.nix
|
||||
|
|
@ -94,9 +90,7 @@
|
|||
zip
|
||||
];
|
||||
services = {
|
||||
syncthing = {
|
||||
tray.enable = true;
|
||||
};
|
||||
syncthing = { tray.enable = true; };
|
||||
gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
|
|
@ -108,7 +102,8 @@
|
|||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
agents = "ssh";
|
||||
keys = "id_aur id_dsa id_ed25519 id_rsa 56913AD86A18257132AA9F03928BC0B78C1BF5AA";
|
||||
keys =
|
||||
"id_aur id_dsa id_ed25519 id_rsa 56913AD86A18257132AA9F03928BC0B78C1BF5AA";
|
||||
inheritType = "any";
|
||||
};
|
||||
home.file.".links/links.cfg".source = files/links.cfg;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
programs.lazygit = {
|
||||
settings = {
|
||||
os.editPreset = "lvim";
|
||||
};
|
||||
};
|
||||
{ pkgs, config, ... }: {
|
||||
programs.lazygit = { settings = { os.editPreset = "lvim"; }; };
|
||||
programs.git = {
|
||||
enable = true;
|
||||
aliases = {
|
||||
|
|
@ -17,9 +9,7 @@
|
|||
st = "status";
|
||||
last = "cat-file commit HEAD";
|
||||
};
|
||||
diff-so-fancy = {
|
||||
enable = true;
|
||||
};
|
||||
diff-so-fancy = { enable = true; };
|
||||
extraConfig = {
|
||||
core = {
|
||||
user = "Don Harper";
|
||||
|
|
@ -27,9 +17,7 @@
|
|||
editor = "${pkgs.lunarvim}/bin/lvim";
|
||||
sshCommand = "${pkgs.openssh}/bin/ssh -i ~/.ssh/git";
|
||||
};
|
||||
safe = {
|
||||
directory = "/home/don/src/nixos/duckland/.git";
|
||||
};
|
||||
safe = { directory = "/home/don/src/nixos/duckland/.git"; };
|
||||
status = {
|
||||
submoduleSummary = "true";
|
||||
short = "true";
|
||||
|
|
@ -38,21 +26,14 @@
|
|||
name = "Don Harper";
|
||||
email = "duck@duckland.org";
|
||||
};
|
||||
push = {
|
||||
default = "simple";
|
||||
};
|
||||
pull = {
|
||||
rebase = "false";
|
||||
};
|
||||
push = { default = "simple"; };
|
||||
pull = { rebase = "false"; };
|
||||
git-extras = {
|
||||
github-personal-access-token = "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";
|
||||
};
|
||||
fetch = {
|
||||
prune = "true";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
github-personal-access-token =
|
||||
"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";
|
||||
};
|
||||
fetch = { prune = "true"; };
|
||||
init = { defaultBranch = "main"; };
|
||||
credential = {
|
||||
"https://github.com" = {
|
||||
helper = "!${pkgs.gh}/bin/gh auth git-credential";
|
||||
|
|
|
|||
|
|
@ -1,18 +1,11 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
programs.khard = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
default_action = "list";
|
||||
editor = "${pkgs.neovim}/bin/nvim";
|
||||
merge_editor = [
|
||||
"${pkgs.neovim}/bin/nvim"
|
||||
"-d"
|
||||
];
|
||||
merge_editor = [ "${pkgs.neovim}/bin/nvim" "-d" ];
|
||||
};
|
||||
"contact table" = {
|
||||
display = "first_name";
|
||||
|
|
@ -22,24 +15,11 @@
|
|||
show_uids = "no";
|
||||
sort = "last_name";
|
||||
localize_dates = "yes";
|
||||
preferred_phone_number_type = [
|
||||
"pref"
|
||||
"cell"
|
||||
"home"
|
||||
];
|
||||
preferred_email_address_type = [
|
||||
"pref"
|
||||
"work"
|
||||
"home"
|
||||
];
|
||||
preferred_phone_number_type = [ "pref" "cell" "home" ];
|
||||
preferred_email_address_type = [ "pref" "work" "home" ];
|
||||
};
|
||||
vcard = {
|
||||
private_objects = [
|
||||
"Jabber"
|
||||
"Skype"
|
||||
"Twitter"
|
||||
"Mastodon"
|
||||
];
|
||||
private_objects = [ "Jabber" "Skype" "Twitter" "Mastodon" ];
|
||||
preferred_version = "3.0";
|
||||
search_in_source_files = "no";
|
||||
skip_unparsable = "no";
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, config, ... }: {
|
||||
xdg.configFile."lf/icons".source = ./icons;
|
||||
|
||||
programs.lf = {
|
||||
enable = true;
|
||||
commands = {
|
||||
editor-open = ''$$EDITOR $f'';
|
||||
editor-open = "$$EDITOR $f";
|
||||
mkdir = ''
|
||||
''${{
|
||||
printf "Directory Name: "
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
home.packages = with pkgs; [ listadmin ];
|
||||
home.file."listadmin.ini" = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
accounts.email.accounts = {
|
||||
"don@donharper.org" = {
|
||||
primary = true;
|
||||
|
|
@ -26,11 +22,7 @@
|
|||
".mbsyncstate.lock"
|
||||
];
|
||||
};
|
||||
extraConfig = {
|
||||
database = {
|
||||
path = "/home/don/Mail";
|
||||
};
|
||||
};
|
||||
extraConfig = { database = { path = "/home/don/Mail"; }; };
|
||||
};
|
||||
|
||||
xdg.configFile."neomutt/neomuttrc".source = ./files/neomutt/neomuttrc;
|
||||
|
|
@ -49,9 +41,7 @@
|
|||
OnUnitActiveSec = "5m";
|
||||
AccuracySec = "1m";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["timers.target"];
|
||||
};
|
||||
Install = { WantedBy = [ "timers.target" ]; };
|
||||
};
|
||||
|
||||
services.mbsync = {
|
||||
|
|
@ -60,9 +50,7 @@
|
|||
Environment = "PATH=/run/current-system/sw/bin";
|
||||
Type = "oneshot";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["mbsync.timer"];
|
||||
};
|
||||
Install = { WantedBy = [ "mbsync.timer" ]; };
|
||||
};
|
||||
|
||||
services."mbsync-all" = {
|
||||
|
|
@ -71,9 +59,7 @@
|
|||
Environment = "PATH=/run/current-system/sw/bin";
|
||||
Type = "oneshot";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["mbsync-all.timer"];
|
||||
};
|
||||
Install = { WantedBy = [ "mbsync-all.timer" ]; };
|
||||
};
|
||||
|
||||
timers."mbsync-all" = {
|
||||
|
|
@ -81,9 +67,7 @@
|
|||
AccuracySec = "1m";
|
||||
OnUnitActiveSec = "14m";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["timers.target"];
|
||||
};
|
||||
Install = { WantedBy = [ "timers.target" ]; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,8 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, config, ... }: {
|
||||
services = {
|
||||
mopidy = {
|
||||
enable = true;
|
||||
extensionPackages = with pkgs; [
|
||||
mopidy-mpd
|
||||
mopidy-subidy
|
||||
mopidy-moped
|
||||
];
|
||||
extensionPackages = with pkgs; [ mopidy-mpd mopidy-subidy mopidy-moped ];
|
||||
settings = {
|
||||
http = {
|
||||
enabled = true;
|
||||
|
|
@ -26,9 +18,7 @@
|
|||
password = "D4u5c3k!@";
|
||||
albumartistsort = false;
|
||||
};
|
||||
mpd = {
|
||||
enabled = true;
|
||||
};
|
||||
mpd = { enabled = true; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = false;
|
||||
|
|
@ -63,7 +59,5 @@
|
|||
vimux
|
||||
];
|
||||
};
|
||||
imports = [
|
||||
./bufferline.nix
|
||||
];
|
||||
imports = [ ./bufferline.nix ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
programs.newsboat = {
|
||||
enable = true;
|
||||
autoReload = true;
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@
|
|||
dataLocation = "~/.task";
|
||||
config = {
|
||||
weekstart = "Monday";
|
||||
burndown = {
|
||||
cumulative = 0;
|
||||
};
|
||||
burndown = { cumulative = 0; };
|
||||
journal = {
|
||||
info = "no";
|
||||
time = "yes";
|
||||
|
|
@ -35,8 +33,10 @@
|
|||
report = {
|
||||
_reviewed = {
|
||||
columns = "uuid";
|
||||
description = "Tasksh review report. Adjust the filter to your needs.";
|
||||
filter = "( reviewed.none: or reviewed.before:now-4weeks ) and ( +PENDING or +WAITING ) and -someday and project.not:books";
|
||||
description =
|
||||
"Tasksh review report. Adjust the filter to your needs.";
|
||||
filter =
|
||||
"( reviewed.none: or reviewed.before:now-4weeks ) and ( +PENDING or +WAITING ) and -someday and project.not:books";
|
||||
sort = "reviewed+,modified+";
|
||||
};
|
||||
mine = {
|
||||
|
|
@ -48,25 +48,33 @@
|
|||
};
|
||||
next.filter = " status:pending limit:page -BLOCKED -someday -WAITING";
|
||||
inbox = {
|
||||
columns = " id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
columns =
|
||||
" id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
description = "list inbox items";
|
||||
filter = " status:pending limit:10 -BLOCKED -someday -WAITING proj:inbox";
|
||||
labels = " ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
filter =
|
||||
" status:pending limit:10 -BLOCKED -someday -WAITING proj:inbox";
|
||||
labels =
|
||||
" ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
sort = " urgency-";
|
||||
context = " 0";
|
||||
};
|
||||
waiting = {
|
||||
columns = " id,start.age,entry.age,depends,priority,project,tags,recur,wait,due,until.remaining,description,urgency";
|
||||
columns =
|
||||
" id,start.age,entry.age,depends,priority,project,tags,recur,wait,due,until.remaining,description,urgency";
|
||||
description = "Waiting";
|
||||
filter = " status.not:deleted status.not:completed -BLOCKED -someday +WAITING";
|
||||
labels = " ID,Active,Age,Deps,P,Project,Tag,Recur,Wait til,Due,Until,Description,Urg";
|
||||
filter =
|
||||
" status.not:deleted status.not:completed -BLOCKED -someday +WAITING";
|
||||
labels =
|
||||
" ID,Active,Age,Deps,P,Project,Tag,Recur,Wait til,Due,Until,Description,Urg";
|
||||
sort = " wait";
|
||||
};
|
||||
nnext = {
|
||||
columns = " id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
columns =
|
||||
" id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
description = "Next 10 list";
|
||||
filter = " status:pending limit:10 -BLOCKED -someday -WAITING";
|
||||
labels = " ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
labels =
|
||||
" ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
sort = " urgency-";
|
||||
};
|
||||
title = {
|
||||
|
|
@ -78,23 +86,28 @@
|
|||
sort = " description+";
|
||||
};
|
||||
anext = {
|
||||
columns = " id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
columns =
|
||||
" id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
description = "Next 10 list";
|
||||
filter = " status:pending limit:10 -BLOCKED -WAITING";
|
||||
labels = " ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
labels =
|
||||
" ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
sort = " urgency-";
|
||||
};
|
||||
last = {
|
||||
columns = " id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
columns =
|
||||
" id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
description = "Oldest 10 list";
|
||||
filter = " status:pending limit:10 -BLOCKED -someday -WAITING";
|
||||
labels = " ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
labels =
|
||||
" ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
sort = " entry+";
|
||||
};
|
||||
inboxdash = {
|
||||
columns = " id,project,description.count";
|
||||
description = "Inbox for dashboards";
|
||||
filter = " status:pending limit:10 -BLOCKED -someday -WAITING proj:inbox";
|
||||
filter =
|
||||
" status:pending limit:10 -BLOCKED -someday -WAITING proj:inbox";
|
||||
labels = " ID,Project,Description";
|
||||
sort = " urgency-";
|
||||
};
|
||||
|
|
@ -106,7 +119,8 @@
|
|||
sort = " urgency-";
|
||||
};
|
||||
mail = {
|
||||
columns = " id,priority,project,due.relative,until.remaining,description.count,urgency";
|
||||
columns =
|
||||
" id,priority,project,due.relative,until.remaining,description.count,urgency";
|
||||
description = "Next 5 list";
|
||||
filter = " status:pending limit:5 -BLOCKED -someday -WAITING";
|
||||
labels = " ID,P,Project,Due,Until,Description,Urg";
|
||||
|
|
@ -115,13 +129,15 @@
|
|||
followup = {
|
||||
columns = " id,start.age,entry.age,priority,project,description";
|
||||
description = "Someday list";
|
||||
filter = " status.not:completed status.not:deleted -BLOCKED +followup";
|
||||
filter =
|
||||
" status.not:completed status.not:deleted -BLOCKED +followup";
|
||||
labels = " ID,Active,Age,P,Project,Description";
|
||||
sort = " project,urgency-";
|
||||
context = " 0";
|
||||
};
|
||||
someday = {
|
||||
columns = " id,start.age,entry.age,priority,project,description,urgency";
|
||||
columns =
|
||||
" id,start.age,entry.age,priority,project,description,urgency";
|
||||
description = "Someday list";
|
||||
filter = " status:pending -BLOCKED +someday limit:page -WAITING";
|
||||
labels = " ID,Active,Age,P,Project,Description,Urg";
|
||||
|
|
@ -133,7 +149,8 @@
|
|||
taskd = {
|
||||
ca = "/home/don/.task/ca.cert.pem";
|
||||
certificate = "/home/don/.task/don_harper.cert.pem";
|
||||
credentials = "duckland.org/Don Harper/de27c234-6217-4e8b-83c1-2ea840bac55f";
|
||||
credentials =
|
||||
"duckland.org/Don Harper/de27c234-6217-4e8b-83c1-2ea840bac55f";
|
||||
key = "/home/don/.task/don_harper.key.pem";
|
||||
server = "task.duckland.org:53589";
|
||||
recurrence = "on";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
programs.topgrade = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -1,36 +1,21 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
{ inputs, outputs, ... }: {
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "home-manager-backup";
|
||||
users = {
|
||||
don = {
|
||||
imports = [
|
||||
inputs.catppuccin.homeManagerModules.catppuccin
|
||||
./common
|
||||
];
|
||||
imports = [ inputs.catppuccin.homeManagerModules.catppuccin ./common ];
|
||||
home = {
|
||||
username = "don";
|
||||
homeDirectory = "/home/don";
|
||||
stateVersion = "23.05";
|
||||
};
|
||||
programs = {
|
||||
home-manager = {
|
||||
enable = true;
|
||||
};
|
||||
go = {
|
||||
enable = true;
|
||||
};
|
||||
home-manager = { enable = true; };
|
||||
go = { enable = true; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
gnome-boxes
|
||||
libvirt
|
||||
qemu
|
||||
];
|
||||
}
|
||||
{ pkgs, ... }: { home.packages = with pkgs; [ gnome-boxes libvirt qemu ]; }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, inputs, ... }: {
|
||||
home-manager.users.don = {
|
||||
imports = [
|
||||
./alacritty.nix
|
||||
|
|
@ -16,13 +12,11 @@
|
|||
./sway.nix
|
||||
./terminals.nix
|
||||
];
|
||||
fonts = {
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
fonts = { fontconfig = { enable = true; }; };
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {qutebrowser = prev.qutebrowser.override {enableWideVine = true;};})
|
||||
(final: prev: {
|
||||
qutebrowser = prev.qutebrowser.override { enableWideVine = true; };
|
||||
})
|
||||
];
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
|
|
@ -69,8 +63,7 @@
|
|||
watchmate
|
||||
widevine-cdm
|
||||
yt-dlp
|
||||
]
|
||||
++ lib.optional (pkgs.hostPlatform.system == "x86_64-linux") sonixd;
|
||||
] ++ lib.optional (pkgs.hostPlatform.system == "x86_64-linux") sonixd;
|
||||
xdg = {
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
|
|
@ -81,7 +74,8 @@
|
|||
];
|
||||
"audio/mpeg" = [ "org.kde.kid3.desktop" ];
|
||||
"image/jpeg" = [ "darktable.desktop;gimp.desktop;imv.desktop" ];
|
||||
"image/png" = ["darktable.desktop;gimp.desktop;imv-folder.desktop;imv.desktop"];
|
||||
"image/png" =
|
||||
[ "darktable.desktop;gimp.desktop;imv-folder.desktop;imv.desktop" ];
|
||||
"image/x-adobe-dng" = [ "imv.desktop" ];
|
||||
"inode/directory" = [ "thunar.desktop" ];
|
||||
"text/plain" = [ "gvim.desktop" ];
|
||||
|
|
@ -105,7 +99,8 @@
|
|||
"x-scheme-handler/pdf" = [ "myweb.desktop" ];
|
||||
"x-scheme-handler/tg" = [ "userapp-Telegram Desktop-LOTG11.desktop" ];
|
||||
"x-scheme-handler/tootle" = [ "com.github.bleakgrey.tootle.desktop" ];
|
||||
"x-scheme-handler/unknown" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||
"x-scheme-handler/unknown" =
|
||||
[ "org.qutebrowser.qutebrowser.desktop" ];
|
||||
"application/pdf" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ];
|
||||
"x-scheme-handler/mailto" = [ "neomutt.desktop" ];
|
||||
};
|
||||
|
|
@ -162,9 +157,7 @@
|
|||
categories = [ "Office" ];
|
||||
};
|
||||
};
|
||||
configFile = {
|
||||
"shikane/config.toml".source = files/shikane.toml;
|
||||
};
|
||||
configFile = { "shikane/config.toml".source = files/shikane.toml; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
home.packages = with pkgs; [ fuzzel ];
|
||||
programs.fuzzel = {
|
||||
enable = true;
|
||||
|
|
@ -15,9 +11,7 @@
|
|||
prompt = "❯ ";
|
||||
layer = "overlay";
|
||||
};
|
||||
border = {
|
||||
radius = 20;
|
||||
};
|
||||
border = { radius = 20; };
|
||||
dmenu = {
|
||||
exit-immediately-if-empty = true;
|
||||
mode = "index";
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
hr-seek = "yes";
|
||||
index = "default";
|
||||
save-position-on-quit = "yes";
|
||||
script-opts = "ytdl_hook-ytdl_path=/etc/profiles/per-user/don/bin/yt-dlp";
|
||||
script-opts =
|
||||
"ytdl_hook-ytdl_path=/etc/profiles/per-user/don/bin/yt-dlp";
|
||||
# scripts=[ pkgs.mpvScripts.autoload ];
|
||||
slang = "en";
|
||||
user-agent = "Mozilla/5.0";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, pkgs, ... }: {
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
loadAutoconfig = true;
|
||||
|
|
@ -20,7 +15,8 @@
|
|||
",j" = "spawn --userscript joplin-import";
|
||||
",l" = "spawn --userscript qute-bitwarden";
|
||||
",m" = "spawn --userscript mymail";
|
||||
",n" = ''config-cycle content.user_stylesheets /home/don/src/solarized-everything-css/css/mine.css ""'';
|
||||
",n" = ''
|
||||
config-cycle content.user_stylesheets /home/don/src/solarized-everything-css/css/mine.css ""'';
|
||||
",o" = "spawn --userscript obsidian-import";
|
||||
",r" = "spawn --userscript recipe";
|
||||
",t" = "spawn --userscript qute-bitwarden --totp-only";
|
||||
|
|
@ -31,7 +27,8 @@
|
|||
"gF" = "spawn --userscript openfeeds";
|
||||
"xb" = "config-cycle statusbar.show always in-mode";
|
||||
"xt" = "config-cycle tabs.show always switching";
|
||||
"xx" = "config-cycle statusbar.show always in-mode ;; config-cycle tabs.show always switching";
|
||||
"xx" =
|
||||
"config-cycle statusbar.show always in-mode ;; config-cycle tabs.show always switching";
|
||||
};
|
||||
};
|
||||
searchEngines = {
|
||||
|
|
@ -51,7 +48,8 @@
|
|||
buymusic2 = "https://www.hdtracks.com/";
|
||||
cal = "https://cloud.trex-halfbeak.ts.net/apps/calendar/timeGridDay/now";
|
||||
canvas = "https://katyisd.instructure.com/login/ldap";
|
||||
centerpoint = "http://gis.centerpointenergy.com/outagetracker/?WT.ac=OC_Image_Callout";
|
||||
centerpoint =
|
||||
"http://gis.centerpointenergy.com/outagetracker/?WT.ac=OC_Image_Callout";
|
||||
chase = "https://www.chase.com/";
|
||||
chromeos = "https://cros-updates-serving.appspot.com/";
|
||||
cloud = "https://cloud.trex-halfbeak.ts.net/apps/dashboard/";
|
||||
|
|
@ -61,7 +59,8 @@
|
|||
cups = "http://localhost:631/printers/printer";
|
||||
darkroom = "https://thedarkroom.com/photodashboard/";
|
||||
disk = "https://smart.trex-halfbeak.ts.net/web/dashboard";
|
||||
driversed = "https://driving.aceable.com/teacher/log?studentId=I89fno2YEZo4hQ40";
|
||||
driversed =
|
||||
"https://driving.aceable.com/teacher/log?studentId=I89fno2YEZo4hQ40";
|
||||
droplet = "https://cloud.digitalocean.com/droplets?i=a8b99f";
|
||||
dtstyle = "https://dtstyle.net/";
|
||||
ercot = "https://www.ercot.com/gridmktinfo/dashboards";
|
||||
|
|
@ -69,28 +68,35 @@
|
|||
flood = "https://www.harriscountyfws.org/";
|
||||
gatus = "https://gatus.trex-halfbeak.ts.net/";
|
||||
gcal = "https://calendar.google.com/calendar/r";
|
||||
gfamily = "https://familylink.google.com/member/112279402605706545724/highlights";
|
||||
gfamily =
|
||||
"https://familylink.google.com/member/112279402605706545724/highlights";
|
||||
git = "https://git.trex-halfbeak.ts.net/?repo-search-query=m";
|
||||
gmail = "https://mail.google.com/mail/u/0/?pli=1#inbox";
|
||||
gmaps = "https://www.google.com/maps/";
|
||||
gmessages = "https://messages.google.com/web/conversations";
|
||||
gphoto = "https://photos.google.com/";
|
||||
gvoice = "https://voice.google.com/u/0/calls";
|
||||
hac = "https://homeaccess.katyisd.org/HomeAccess/Account/LogOn?ReturnUrl=%2FHomeAccess";
|
||||
heb = "https://www.heb.com/collections/weekly-ad?customFilters=onAdFilter&shoppingStore=497&utm_source=1021275&utm_medium=email&utm_campaign=2023-11-24-weekly-ad&utm_content=weekly-ad-banner";
|
||||
hac =
|
||||
"https://homeaccess.katyisd.org/HomeAccess/Account/LogOn?ReturnUrl=%2FHomeAccess";
|
||||
heb =
|
||||
"https://www.heb.com/collections/weekly-ad?customFilters=onAdFilter&shoppingStore=497&utm_source=1021275&utm_medium=email&utm_campaign=2023-11-24-weekly-ad&utm_content=weekly-ad-banner";
|
||||
hetzner = "https://console.hetzner.cloud/projects";
|
||||
hometail = "http://homeassistant.tail:8123/lovelace-mine/default_view";
|
||||
hurricane = "https://www.nhc.noaa.gov/";
|
||||
ice = "https://ice.home.duckland.org/";
|
||||
imdb = "https://www.imdb.com/";
|
||||
instapot-cook-times = "https://temeculablogs.com/instant-pot-cooking-times/";
|
||||
jelly = "https://jellyfin.trex-halfbeak.ts.net/web/index.html#!/home.html";
|
||||
instapot-cook-times =
|
||||
"https://temeculablogs.com/instant-pot-cooking-times/";
|
||||
jelly =
|
||||
"https://jellyfin.trex-halfbeak.ts.net/web/index.html#!/home.html";
|
||||
jellyreq = "https://jellyseerr.trex-halfbeak.ts.net/discover/trending";
|
||||
jzoom = "https://jpmchase.zoom.us/";
|
||||
katy-bus = "https://busroutes.katyisd.org/wqsimweb/webquery/";
|
||||
katy-bus-times = "https://busroutes.katyisd.org/wqsimweb/webquery/WebQueryRequestController?action=2&schoolcode=046&numofstops=1&schoolname=BECK+JUNIOR+HIGH&attendSchoolIndex=0#stops";
|
||||
katy-bus-times =
|
||||
"https://busroutes.katyisd.org/wqsimweb/webquery/WebQueryRequestController?action=2&schoolcode=046&numofstops=1&schoolname=BECK+JUNIOR+HIGH&attendSchoolIndex=0#stops";
|
||||
katy-pay = "https://katyisd.revtrak.net/";
|
||||
kindle = "https://smile.amazon.com/mn/dcw/myx.html/ref=kinw_myk_redirect#/home/content/booksAll/dateDsc/";
|
||||
kindle =
|
||||
"https://smile.amazon.com/mn/dcw/myx.html/ref=kinw_myk_redirect#/home/content/booksAll/dateDsc/";
|
||||
kindle-read = "https://www.amazon.com/kindle-dbs/ku/ku-central/";
|
||||
kisdcal = "https://www.katyisd.org/Page/2#calendar1/20230801/month";
|
||||
kroger = "https://www.kroger.com/weeklyad";
|
||||
|
|
@ -112,16 +118,19 @@
|
|||
nix-config = "https://nixos.org/manual/nixos/stable/options.html";
|
||||
nix-dev = "https://nix.dev/";
|
||||
nix-hardware = "https://github.com/duckunix/nixos-hardware";
|
||||
nix-home-manual = "https://nix-community.github.io/home-manager/options.xhtml";
|
||||
nix-home-manual =
|
||||
"https://nix-community.github.io/home-manager/options.xhtml";
|
||||
nix-manual = "https://nixos.org/manual/nixos/stable/index.html";
|
||||
nix-options = "https://search.nixos.org/options?";
|
||||
nix-package = "https://search.nixos.org/packages";
|
||||
nix-up-software = "https://nix.dev/tutorials/learning-journey/packaging-existing-software";
|
||||
nix-up-software =
|
||||
"https://nix.dev/tutorials/learning-journey/packaging-existing-software";
|
||||
nix-versions = "https://lazamar.co.uk/nix-versions/";
|
||||
nix-wiki = "https://nixos.wiki/";
|
||||
ntop = "https://ice.home.duckland.org:3001/";
|
||||
octoprint = "http://octopi.tail/?#temp";
|
||||
orders = "https://www.amazon.com/gp/css/order-history?ref_=nav_orders_first";
|
||||
orders =
|
||||
"https://www.amazon.com/gp/css/order-history?ref_=nav_orders_first";
|
||||
photos = "https://photos.trex-halfbeak.ts.net/";
|
||||
pi = "http://pihole.tail/admin/";
|
||||
pinetab2-releases = "https://wiki.pine64.org/wiki/PineTab2_Releases";
|
||||
|
|
@ -135,7 +144,8 @@
|
|||
smile = "https://www.amazon.com/";
|
||||
spacecity = "https://spacecityweather.com/";
|
||||
sprouts = "https://www.sprouts.com/weekly-ad/";
|
||||
star = "https://starpizzacinco.revelup.com/weborder/?establishment=1#index";
|
||||
star =
|
||||
"https://starpizzacinco.revelup.com/weborder/?establishment=1#index";
|
||||
swayutil = "https://github.com/swaywm/sway/wiki/Useful-add-ons-for-sway";
|
||||
sync-dragon = "http://dragon.tail:8384/#";
|
||||
sync-eve = "http://eve.tail:8384/#";
|
||||
|
|
@ -160,7 +170,8 @@
|
|||
vonage = "https://secure.vonage.com/account/login.html";
|
||||
vortexic = "https://vortexic-university.sparkuniversity.co/Courses.aspx";
|
||||
waze = "https://www.waze.com/livemap";
|
||||
weather = "https://merrysky.net/forecast/Cinco%20Ranch%20High%20School,%20Katy,%20%20TX/us";
|
||||
weather =
|
||||
"https://merrysky.net/forecast/Cinco%20Ranch%20High%20School,%20Katy,%20%20TX/us";
|
||||
weather2 = "https://openweathermap.org/city/4681485";
|
||||
weather3 = "https://www.wunderground.com/weather/us/tx/katy/29.79,-95.82";
|
||||
weather4 = "https://www.weatherbug.com/weather-forecast/now/";
|
||||
|
|
@ -180,9 +191,7 @@
|
|||
#c.bindings = { key_mappings = ['<Ctrl+6>': '<Ctrl+^>' '<Ctrl+Enter>': '<Ctrl+Return>' '<Ctrl+j>': '<Return>' '<Ctrl+m>': '<Return>' '<Ctrl+[>': '<Escape>' '<Enter>': '<Return>' '<Shift+Enter>': '<Return>' '<Shift+Return>': '<Return>']}
|
||||
'';
|
||||
settings = {
|
||||
auto_save = {
|
||||
session = true;
|
||||
};
|
||||
auto_save = { session = true; };
|
||||
#};
|
||||
colors = {
|
||||
webpage = {
|
||||
|
|
@ -203,12 +212,8 @@
|
|||
};
|
||||
};
|
||||
completion = {
|
||||
open_categories = [
|
||||
"quickmarks"
|
||||
"searchengines"
|
||||
"bookmarks"
|
||||
"history"
|
||||
];
|
||||
open_categories =
|
||||
[ "quickmarks" "searchengines" "bookmarks" "history" ];
|
||||
};
|
||||
content = {
|
||||
autoplay = false;
|
||||
|
|
@ -223,66 +228,35 @@
|
|||
enabled = true;
|
||||
};
|
||||
};
|
||||
downloads = {
|
||||
prevent_mixed_content = true;
|
||||
};
|
||||
downloads = { prevent_mixed_content = true; };
|
||||
fileselect = {
|
||||
folder = {
|
||||
command = [
|
||||
"kitty"
|
||||
"-e"
|
||||
"ranger"
|
||||
"--choosedir={}"
|
||||
];
|
||||
};
|
||||
folder = { command = [ "kitty" "-e" "ranger" "--choosedir={}" ]; };
|
||||
handler = "external";
|
||||
multiple_files = {
|
||||
command = [
|
||||
"kitty"
|
||||
"-e"
|
||||
"ranger"
|
||||
"--choosefile={}"
|
||||
];
|
||||
command = [ "kitty" "-e" "ranger" "--choosefile={}" ];
|
||||
};
|
||||
single_file = {
|
||||
command = [
|
||||
"kitty"
|
||||
"-e"
|
||||
"ranger"
|
||||
"--choosefile={}"
|
||||
];
|
||||
command = [ "kitty" "-e" "ranger" "--choosefile={}" ];
|
||||
};
|
||||
};
|
||||
qt = {
|
||||
args = ["widevine-path=${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"];
|
||||
workarounds = {
|
||||
remove_service_workers = true;
|
||||
};
|
||||
};
|
||||
spellcheck = {
|
||||
languages = ["en-US"];
|
||||
};
|
||||
statusbar = {
|
||||
show = "in-mode";
|
||||
args = [
|
||||
"widevine-path=${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"
|
||||
];
|
||||
workarounds = { remove_service_workers = true; };
|
||||
};
|
||||
spellcheck = { languages = [ "en-US" ]; };
|
||||
statusbar = { show = "in-mode"; };
|
||||
tabs = {
|
||||
favicons = {
|
||||
scale = 1;
|
||||
};
|
||||
indicator = {
|
||||
width = 1;
|
||||
};
|
||||
favicons = { scale = 1; };
|
||||
indicator = { width = 1; };
|
||||
mode_on_change = "restore";
|
||||
position = "bottom";
|
||||
select_on_remove = "next";
|
||||
show = "always";
|
||||
title = {
|
||||
format = "{audio}{current_title}";
|
||||
};
|
||||
};
|
||||
url = {
|
||||
default_page = "about:blank";
|
||||
title = { format = "{audio}{current_title}"; };
|
||||
};
|
||||
url = { default_page = "about:blank"; };
|
||||
};
|
||||
};
|
||||
home.file.qutebrowserlocal = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
services.redshift = {
|
||||
enable = true;
|
||||
latitude = "29.74";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ ... }: {
|
||||
services = {
|
||||
gnome-keyring = {
|
||||
enable = true;
|
||||
};
|
||||
ssh-agent = {
|
||||
enable = true;
|
||||
};
|
||||
gnome-keyring = { enable = true; };
|
||||
ssh-agent = { enable = true; };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,6 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
hostname,
|
||||
outputs,
|
||||
osConfig,
|
||||
...
|
||||
}: {
|
||||
xdg.configFile."sway/config".source = ./files/sway/${osConfig.networking.hostName};
|
||||
{ inputs, pkgs, hostname, outputs, osConfig, ... }: {
|
||||
xdg.configFile."sway/config".source =
|
||||
./files/sway/${osConfig.networking.hostName};
|
||||
xdg.configFile."waybar/weather.py".source = ./files/sway/weather.py;
|
||||
xdg.configFile."waybar/weather.conf".source = ./files/sway/weather.conf;
|
||||
|
||||
|
|
@ -30,12 +24,8 @@
|
|||
position = "top";
|
||||
height = 10;
|
||||
spacing = 0;
|
||||
modules-left = [
|
||||
"sway/workspaces"
|
||||
"sway/mode"
|
||||
"wlr/workspaces"
|
||||
"custom/mycal"
|
||||
];
|
||||
modules-left =
|
||||
[ "sway/workspaces" "sway/mode" "wlr/workspaces" "custom/mycal" ];
|
||||
modules-center = [ ];
|
||||
# modules-right = ["idle_inhibitor" "custom/mytimew" "pulseaudio" "custom/mymusic" "bluetooth" "network" "backlight" "battery" "battery#bat2" "tray" "custom/mycal" "clock"];
|
||||
modules-right = [
|
||||
|
|
@ -89,12 +79,8 @@
|
|||
on-click = "~/bin/control-music --pause";
|
||||
interval = 5;
|
||||
};
|
||||
"sway/window" = {
|
||||
icon-size = 10;
|
||||
};
|
||||
"sway/mode" = {
|
||||
format = "<span style=\"italic\">{}</span>";
|
||||
};
|
||||
"sway/window" = { icon-size = 10; };
|
||||
"sway/mode" = { format = ''<span style="italic">{}</span>''; };
|
||||
"idle_inhibitor" = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
|
|
@ -107,7 +93,9 @@
|
|||
spacing = 10;
|
||||
};
|
||||
clock = {
|
||||
tooltip-format = "<big>{:%Y %B %d}</big>\n<tt><small>{calendar}</small></tt>";
|
||||
tooltip-format = ''
|
||||
<big>{:%Y %B %d}</big>
|
||||
<tt><small>{calendar}</small></tt>'';
|
||||
format = "{:%I:%M %p}";
|
||||
format-alt = "{:%Y-%m-%d}";
|
||||
on-click = "~/bin/mynewterm -e ikhal";
|
||||
|
|
@ -116,9 +104,7 @@
|
|||
format = "cpu: {usage}%";
|
||||
tooltip = false;
|
||||
};
|
||||
memory = {
|
||||
format = "mem: {}%";
|
||||
};
|
||||
memory = { format = "mem: {}%"; };
|
||||
temperature = {
|
||||
critical-threshold = 80;
|
||||
format = "{temperatureC}°C {icon}";
|
||||
|
|
@ -135,9 +121,7 @@
|
|||
format-discharging = "d:{capacity}% {time}";
|
||||
format-alt = "{time} {icon}";
|
||||
};
|
||||
"battery#bat2" = {
|
||||
bat = "BAT2";
|
||||
};
|
||||
"battery#bat2" = { bat = "BAT2"; };
|
||||
network = {
|
||||
format-wifi = "{essid} ({signalStrength}%)";
|
||||
format-ethernet = "{ipaddr}/{cidr}";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
@ -16,19 +12,11 @@
|
|||
};
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
server = {
|
||||
enable = true;
|
||||
};
|
||||
server = { enable = true; };
|
||||
settings = {
|
||||
main = {
|
||||
term = "tmux-256color";
|
||||
};
|
||||
mouse = {
|
||||
hide-when-typing = "yes";
|
||||
};
|
||||
bell = {
|
||||
urgent = "yes";
|
||||
};
|
||||
main = { term = "tmux-256color"; };
|
||||
mouse = { hide-when-typing = "yes"; };
|
||||
bell = { urgent = "yes"; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,11 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
(pkgs.citrix_workspace.override {
|
||||
libvorbis = pkgs.libvorbis.override {
|
||||
libogg = pkgs.libogg.overrideAttrs (prevAttrs: {
|
||||
cmakeFlags =
|
||||
(prevAttrs.cmakeFlags or [])
|
||||
++ [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
];
|
||||
cmakeFlags = (prevAttrs.cmakeFlags or [ ])
|
||||
++ [ (lib.cmakeBool "BUILD_SHARED_LIBS" true) ];
|
||||
});
|
||||
};
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,12 +1,3 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
home-manager.users.don = {
|
||||
imports = [
|
||||
./citrix.nix
|
||||
./zoom.nix
|
||||
];
|
||||
};
|
||||
{ pkgs, inputs, ... }: {
|
||||
home-manager.users.don = { imports = [ ./citrix.nix ./zoom.nix ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
home.packages = with pkgs; [ zoom-us ];
|
||||
# xdg = {
|
||||
# configFile."zoom.conf".source = files/zoom.conf;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
deployment = {
|
||||
tags = ["workstation" "intel"];
|
||||
};
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = { tags = [ "workstation" "intel" ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
# ../disko/mmcblk.nix
|
||||
|
|
|
|||
|
|
@ -1,23 +1,10 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"uas"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "uas" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -32,9 +19,7 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/sda3";}
|
||||
];
|
||||
swapDevices = [{ device = "/dev/sda3"; }];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
@ -45,5 +30,6 @@
|
|||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
vdb = {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||
|
|
|
|||
|
|
@ -1,24 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ehci_pci"
|
||||
"ahci"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "ehci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -33,9 +20,8 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/843421e5-cb74-4c43-b88d-5053e7f7dec4";}
|
||||
];
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/843421e5-cb74-4c43-b88d-5053e7f7dec4"; }];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
@ -47,5 +33,6 @@
|
|||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
deployment = {
|
||||
tags = ["workstation" "intel"];
|
||||
};
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = { tags = [ "workstation" "intel" ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.google-pixelbook
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
|
|
@ -1,24 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -46,5 +33,6 @@
|
|||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
boot.kernelPatches = lib.singleton {
|
||||
name = "eve-config";
|
||||
patch = null;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
deployment = {
|
||||
tags = ["server" "intel"];
|
||||
};
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = { tags = [ "server" "intel" ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../server
|
||||
|
|
@ -18,9 +11,7 @@
|
|||
boot = {
|
||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
};
|
||||
systemd-boot = { enable = true; };
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
# Auto-generated using compose2nix v0.1.6.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ config, lib, ... }: {
|
||||
# Runtime
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,26 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ehci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"ums_realtek"
|
||||
"sd_mod"
|
||||
"sr_mod"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "ehci_pci" "ahci" "usbhid" "ums_realtek" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -45,5 +30,6 @@
|
|||
# networking.interfaces.enp0s25.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
# Auto-generated using compose2nix v0.1.6.
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, lib, ... }: {
|
||||
# Runtime
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
|
|
@ -35,29 +31,16 @@
|
|||
"/home/don/docker/speedtest/config:/config:rw"
|
||||
"/home/don/docker/speedtest/web:/etc/ssl/web:rw"
|
||||
];
|
||||
dependsOn = [
|
||||
"bandwidth-db"
|
||||
"bandwidth-ts"
|
||||
];
|
||||
dependsOn = [ "bandwidth-db" "bandwidth-ts" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network=container:bandwidth-ts"
|
||||
];
|
||||
extraOptions = [ "--network=container:bandwidth-ts" ];
|
||||
};
|
||||
systemd.services."podman-bandwidth" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
unitConfig.UpheldBy = [
|
||||
"podman-bandwidth-db.service"
|
||||
"podman-bandwidth-ts.service"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
unitConfig.UpheldBy =
|
||||
[ "podman-bandwidth-db.service" "podman-bandwidth-ts.service" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
virtualisation.oci-containers.containers."bandwidth-db" = {
|
||||
image = "mariadb:10";
|
||||
|
|
@ -69,30 +52,16 @@
|
|||
PGID = "1000";
|
||||
PUID = "1000";
|
||||
};
|
||||
volumes = [
|
||||
"/home/don/docker/speedtest-db:/var/lib/mysql:rw"
|
||||
];
|
||||
dependsOn = [
|
||||
"bandwidth-ts"
|
||||
];
|
||||
volumes = [ "/home/don/docker/speedtest-db:/var/lib/mysql:rw" ];
|
||||
dependsOn = [ "bandwidth-ts" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network=container:bandwidth-ts"
|
||||
];
|
||||
extraOptions = [ "--network=container:bandwidth-ts" ];
|
||||
};
|
||||
systemd.services."podman-bandwidth-db" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
unitConfig.UpheldBy = [
|
||||
"podman-bandwidth-ts.service"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
unitConfig.UpheldBy = [ "podman-bandwidth-ts.service" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
virtualisation.oci-containers.containers."bandwidth-ts" = {
|
||||
image = "tailscale/tailscale";
|
||||
|
|
@ -119,21 +88,11 @@
|
|||
];
|
||||
};
|
||||
systemd.services."podman-bandwidth-ts" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "no";
|
||||
};
|
||||
after = [
|
||||
"podman-network-tstest-default.service"
|
||||
];
|
||||
requires = [
|
||||
"podman-network-tstest-default.service"
|
||||
];
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "no"; };
|
||||
after = [ "podman-network-tstest-default.service" ];
|
||||
requires = [ "podman-network-tstest-default.service" ];
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
|
||||
# Networks
|
||||
|
|
@ -155,9 +114,7 @@
|
|||
# When started, this will automatically create all resources and start
|
||||
# the containers. When stopped, this will teardown all resources.
|
||||
systemd.targets."podman-compose-tstest-root" = {
|
||||
unitConfig = {
|
||||
Description = "Root target generated by compose2nix.";
|
||||
};
|
||||
unitConfig = { Description = "Root target generated by compose2nix."; };
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../server
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../../server ];
|
||||
networking.hostName = "harper";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../server
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../../server ];
|
||||
networking.hostName = "harper2";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
deployment = {
|
||||
tags = [ "workstation" "intel" ];
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.dell-xps-13-9310
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
|
|
@ -1,25 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"thunderbolt"
|
||||
"nvme"
|
||||
"uas"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "thunderbolt" "nvme" "uas" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -47,5 +33,6 @@
|
|||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot.kernelModules = [
|
||||
"axge"
|
||||
"ax88179_178a"
|
||||
];
|
||||
}
|
||||
{ config, pkgs, ... }: { boot.kernelModules = [ "axge" "ax88179_178a" ]; }
|
||||
|
|
|
|||
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../server
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../../server ];
|
||||
networking.hostName = "nuwww";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = {
|
||||
targetHost = "nixos";
|
||||
tags = [ "arm" ];
|
||||
|
|
|
|||
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../server
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../server ];
|
||||
networking.hostName = "pi1";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,8 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
|
|
|
|||
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../server
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../../server ];
|
||||
networking.hostName = "pihole";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
deployment = {
|
||||
tags = ["intel"];
|
||||
};
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = { tags = [ "intel" ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||
|
|
|
|||
|
|
@ -1,24 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -43,5 +30,6 @@
|
|||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||
let
|
||||
my-python-packages = python-packages:
|
||||
with python-packages; [
|
||||
pip
|
||||
|
|
@ -18,16 +12,10 @@
|
|||
in {
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
warn-dirty = false;
|
||||
auto-optimise-store = true;
|
||||
trusted-users = [
|
||||
"root"
|
||||
"don"
|
||||
];
|
||||
trusted-users = [ "root" "don" ];
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
|
|
@ -35,12 +23,7 @@ in {
|
|||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
../../home
|
||||
./systemd.nix
|
||||
./tailscale.nix
|
||||
./upgrade-diff.nix
|
||||
];
|
||||
imports = [ ../../home ./systemd.nix ./tailscale.nix ./upgrade-diff.nix ];
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
|
@ -59,10 +42,7 @@ in {
|
|||
inputMethod = {
|
||||
enable = true;
|
||||
type = "fcitx5";
|
||||
fcitx5.addons = with pkgs; [
|
||||
fcitx5-mozc
|
||||
fcitx5-gtk
|
||||
];
|
||||
fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-gtk ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -79,53 +59,33 @@ in {
|
|||
#efiSysMountPoint = "/boot";
|
||||
#};
|
||||
#};
|
||||
plymouth = {
|
||||
enable = true;
|
||||
};
|
||||
kernel = {
|
||||
sysctl = {
|
||||
"vm.swappiness" = 10;
|
||||
};
|
||||
};
|
||||
plymouth = { enable = true; };
|
||||
kernel = { sysctl = { "vm.swappiness" = 10; }; };
|
||||
};
|
||||
|
||||
security = {
|
||||
polkit = {
|
||||
enable = true;
|
||||
};
|
||||
polkit = { enable = true; };
|
||||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{
|
||||
extraRules = [{
|
||||
users = [ "don" ];
|
||||
keepEnv = true;
|
||||
noPass = true;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
pcscd = {
|
||||
enable = true;
|
||||
};
|
||||
pcscd = { enable = true; };
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
};
|
||||
printing = {
|
||||
enable = true;
|
||||
};
|
||||
udisks2 = {
|
||||
enable = true;
|
||||
};
|
||||
nscd = {
|
||||
enableNsncd = true;
|
||||
};
|
||||
tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
printing = { enable = true; };
|
||||
udisks2 = { enable = true; };
|
||||
nscd = { enableNsncd = true; };
|
||||
tailscale = { enable = true; };
|
||||
locate = {
|
||||
enable = true;
|
||||
package = pkgs.mlocate;
|
||||
|
|
@ -206,12 +166,8 @@ in {
|
|||
];
|
||||
|
||||
programs = {
|
||||
dconf = {
|
||||
enable = true;
|
||||
};
|
||||
mtr = {
|
||||
enable = true;
|
||||
};
|
||||
dconf = { enable = true; };
|
||||
mtr = { enable = true; };
|
||||
gnupg = {
|
||||
agent = {
|
||||
enable = true;
|
||||
|
|
@ -223,9 +179,7 @@ in {
|
|||
|
||||
nixpkgs.overlays = [
|
||||
(final: super: {
|
||||
khal = super.khal.overridePythonAttrs (_: {
|
||||
doCheck = false;
|
||||
});
|
||||
khal = super.khal.overridePythonAttrs (_: { doCheck = false; });
|
||||
})
|
||||
];
|
||||
|
||||
|
|
@ -238,40 +192,28 @@ in {
|
|||
|
||||
# allow the Tailscale UDP port through the firewall
|
||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
}];
|
||||
|
||||
# allow you to SSH in over the public internet
|
||||
allowedTCPPorts = [ 22 ];
|
||||
interfaces = {
|
||||
"tailscale0" = {
|
||||
allowedTCPPorts = [
|
||||
22
|
||||
8080
|
||||
8443
|
||||
];
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
allowedTCPPorts = [ 22 8080 8443 ];
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
searxng
|
||||
];
|
||||
{ pkgs, config, ... }: {
|
||||
environment.systemPackages = with pkgs; [ searxng ];
|
||||
services.searx = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: let
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
readlink = "${pkgs.coreutils}/bin/readlink";
|
||||
notify-send = "${pkgs.libnotify}/bin/notify-send";
|
||||
in {
|
||||
|
|
@ -26,9 +27,7 @@ in {
|
|||
${notify-send} --urgency=low --icon=system-reboot "Reboot is needed for a NixOS upgrade."
|
||||
fi
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
};
|
||||
};
|
||||
timers = {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,12 +1,6 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, config, ... }: {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
"unifi-controller"
|
||||
];
|
||||
builtins.elem (lib.getName pkg) [ "unifi-controller" ];
|
||||
services = {
|
||||
unifi = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = {
|
||||
tags = [ "workstation" "intel" ];
|
||||
allowLocalDeployment = true;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
|
|
@ -1,18 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc"];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -39,5 +32,6 @@
|
|||
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
# Auto-generated using compose2nix v0.1.6.
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, lib, ... }: {
|
||||
# Runtime
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
|
|
@ -25,31 +21,16 @@
|
|||
MARIADB_RANDOM_ROOT_PASSWORD = "true";
|
||||
MARIADB_USER = "speedy";
|
||||
};
|
||||
volumes = [
|
||||
"/home/don/docker/speedtest-db:/var/lib/mysql:rw"
|
||||
];
|
||||
volumes = [ "/home/don/docker/speedtest-db:/var/lib/mysql:rw" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network-alias=db"
|
||||
"--network=speedtest-default"
|
||||
];
|
||||
extraOptions = [ "--network-alias=db" "--network=speedtest-default" ];
|
||||
};
|
||||
systemd.services."podman-speedtest-db" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
after = [
|
||||
"podman-network-speedtest-default.service"
|
||||
];
|
||||
requires = [
|
||||
"podman-network-speedtest-default.service"
|
||||
];
|
||||
partOf = [
|
||||
"podman-compose-speedtest-root.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-speedtest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
after = [ "podman-network-speedtest-default.service" ];
|
||||
requires = [ "podman-network-speedtest-default.service" ];
|
||||
partOf = [ "podman-compose-speedtest-root.target" ];
|
||||
wantedBy = [ "podman-compose-speedtest-root.target" ];
|
||||
};
|
||||
virtualisation.oci-containers.containers."speedtest-tracker" = {
|
||||
image = "ghcr.io/alexjustesen/speedtest-tracker:latest";
|
||||
|
|
@ -69,35 +50,18 @@
|
|||
"/home/don/docker/speedtest/config:/config:rw"
|
||||
"/home/don/docker/speedtest/web:/etc/ssl/web:rw"
|
||||
];
|
||||
ports = [
|
||||
"8080:80/tcp"
|
||||
"8443:443/tcp"
|
||||
];
|
||||
dependsOn = [
|
||||
"speedtest-db"
|
||||
];
|
||||
ports = [ "8080:80/tcp" "8443:443/tcp" ];
|
||||
dependsOn = [ "speedtest-db" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network-alias=speedtest-tracker"
|
||||
"--network=speedtest-default"
|
||||
];
|
||||
extraOptions =
|
||||
[ "--network-alias=speedtest-tracker" "--network=speedtest-default" ];
|
||||
};
|
||||
systemd.services."podman-speedtest-tracker" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
after = [
|
||||
"podman-network-speedtest-default.service"
|
||||
];
|
||||
requires = [
|
||||
"podman-network-speedtest-default.service"
|
||||
];
|
||||
partOf = [
|
||||
"podman-compose-speedtest-root.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-speedtest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
after = [ "podman-network-speedtest-default.service" ];
|
||||
requires = [ "podman-network-speedtest-default.service" ];
|
||||
partOf = [ "podman-compose-speedtest-root.target" ];
|
||||
wantedBy = [ "podman-compose-speedtest-root.target" ];
|
||||
};
|
||||
|
||||
# Networks
|
||||
|
|
@ -119,9 +83,7 @@
|
|||
# When started, this will automatically create all resources and start
|
||||
# the containers. When stopped, this will teardown all resources.
|
||||
systemd.targets."podman-compose-speedtest-root" = {
|
||||
unitConfig = {
|
||||
Description = "Root target generated by compose2nix.";
|
||||
};
|
||||
unitConfig = { Description = "Root target generated by compose2nix."; };
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
deployment = {
|
||||
tags = ["arm"];
|
||||
};
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = { tags = [ "arm" ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../workstation
|
||||
../wm
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../workstation ../wm ];
|
||||
networking.hostName = "t2";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,8 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
flavor = "mocha";
|
||||
|
|
|
|||
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../server
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../server ];
|
||||
networking.hostName = "vm";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,24 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ahci"
|
||||
"xhci_pci"
|
||||
"virtio_pci"
|
||||
"sr_mod"
|
||||
"virtio_blk"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -33,9 +20,7 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/vda2";}
|
||||
];
|
||||
swapDevices = [{ device = "/dev/vda2"; }];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
@ -45,5 +30,6 @@
|
|||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
networking.hostName = "vm1";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,24 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ahci"
|
||||
"xhci_pci"
|
||||
"virtio_pci"
|
||||
"sr_mod"
|
||||
"virtio_blk"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -33,9 +20,7 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/vda2";}
|
||||
];
|
||||
swapDevices = [{ device = "/dev/vda2"; }];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
@ -45,5 +30,6 @@
|
|||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
deployment = {
|
||||
tags = ["server" "intel" "vps" "web"];
|
||||
};
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = { tags = [ "server" "intel" "vps" "web" ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./network.nix
|
||||
|
|
@ -15,7 +8,8 @@
|
|||
networking.hostName = "w1";
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
|
||||
availableKernelModules =
|
||||
[ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
|
||||
kernelModules = [ "nvme" ];
|
||||
};
|
||||
loader = {
|
||||
|
|
|
|||
|
|
@ -1,18 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
# This file was populated at runtime with the networking
|
||||
# details gathered from the active system.
|
||||
networking = {
|
||||
nameservers = [
|
||||
"1.1.1.1"
|
||||
];
|
||||
nameservers = [ "1.1.1.1" ];
|
||||
defaultGateway = "172.31.1.1";
|
||||
defaultGateway6 = {
|
||||
address = "fe80::1";
|
||||
|
|
@ -14,12 +12,10 @@
|
|||
usePredictableInterfaceNames = lib.mkForce false;
|
||||
interfaces = {
|
||||
eth0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
ipv4.addresses = [{
|
||||
address = "5.161.104.185";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
}];
|
||||
ipv6.addresses = [
|
||||
{
|
||||
address = "2a01:4ff:f0:c3e0::1";
|
||||
|
|
@ -30,18 +26,14 @@
|
|||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
ipv4.routes = [
|
||||
{
|
||||
ipv4.routes = [{
|
||||
address = "172.31.1.1";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
ipv6.routes = [
|
||||
{
|
||||
}];
|
||||
ipv6.routes = [{
|
||||
address = "fe80::1";
|
||||
prefixLength = 128;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
# Auto-generated using compose2nix v0.1.6.
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, lib, ... }: {
|
||||
# Runtime
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
|
|
@ -35,29 +31,16 @@
|
|||
"/home/don/docker/speedtest/config:/config:rw"
|
||||
"/home/don/docker/speedtest/web:/etc/ssl/web:rw"
|
||||
];
|
||||
dependsOn = [
|
||||
"bandwidth-db"
|
||||
"bandwidth-ts"
|
||||
];
|
||||
dependsOn = [ "bandwidth-db" "bandwidth-ts" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network=container:bandwidth-ts"
|
||||
];
|
||||
extraOptions = [ "--network=container:bandwidth-ts" ];
|
||||
};
|
||||
systemd.services."podman-bandwidth" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
unitConfig.UpheldBy = [
|
||||
"podman-bandwidth-db.service"
|
||||
"podman-bandwidth-ts.service"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
unitConfig.UpheldBy =
|
||||
[ "podman-bandwidth-db.service" "podman-bandwidth-ts.service" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
virtualisation.oci-containers.containers."bandwidth-db" = {
|
||||
image = "mariadb:10";
|
||||
|
|
@ -69,30 +52,16 @@
|
|||
PGID = "1000";
|
||||
PUID = "1000";
|
||||
};
|
||||
volumes = [
|
||||
"/home/don/docker/speedtest-db:/var/lib/mysql:rw"
|
||||
];
|
||||
dependsOn = [
|
||||
"bandwidth-ts"
|
||||
];
|
||||
volumes = [ "/home/don/docker/speedtest-db:/var/lib/mysql:rw" ];
|
||||
dependsOn = [ "bandwidth-ts" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network=container:bandwidth-ts"
|
||||
];
|
||||
extraOptions = [ "--network=container:bandwidth-ts" ];
|
||||
};
|
||||
systemd.services."podman-bandwidth-db" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
unitConfig.UpheldBy = [
|
||||
"podman-bandwidth-ts.service"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
unitConfig.UpheldBy = [ "podman-bandwidth-ts.service" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
virtualisation.oci-containers.containers."bandwidth-ts" = {
|
||||
image = "tailscale/tailscale";
|
||||
|
|
@ -100,7 +69,8 @@
|
|||
PGID = "1000";
|
||||
PUID = "1000";
|
||||
TS_ACCEPT_DNS = "true";
|
||||
TS_AUTHKEY = "tskey-auth-k6qutwuAk221CNTRL-9L2MS7sw2SVtH2kYKCcVNVsUHKYSX5UjH";
|
||||
TS_AUTHKEY =
|
||||
"tskey-auth-k6qutwuAk221CNTRL-9L2MS7sw2SVtH2kYKCcVNVsUHKYSX5UjH";
|
||||
TS_HOSTNAME = "fred-bw";
|
||||
TS_STATE_DIR = "/var/lib/tailscale";
|
||||
};
|
||||
|
|
@ -119,21 +89,11 @@
|
|||
];
|
||||
};
|
||||
systemd.services."podman-bandwidth-ts" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "no";
|
||||
};
|
||||
after = [
|
||||
"podman-network-tstest-default.service"
|
||||
];
|
||||
requires = [
|
||||
"podman-network-tstest-default.service"
|
||||
];
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "no"; };
|
||||
after = [ "podman-network-tstest-default.service" ];
|
||||
requires = [ "podman-network-tstest-default.service" ];
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
|
||||
# Networks
|
||||
|
|
@ -155,9 +115,7 @@
|
|||
# When started, this will automatically create all resources and start
|
||||
# the containers. When stopped, this will teardown all resources.
|
||||
systemd.targets."podman-compose-tstest-root" = {
|
||||
unitConfig = {
|
||||
Description = "Root target generated by compose2nix.";
|
||||
};
|
||||
unitConfig = { Description = "Root target generated by compose2nix."; };
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = {
|
||||
tags = [ "server" "intel" "vps" "web" ];
|
||||
targetHost = "178.156.139.49";
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./network.nix
|
||||
|
|
@ -15,7 +8,8 @@
|
|||
networking.hostName = "w1";
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
|
||||
availableKernelModules =
|
||||
[ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
|
||||
kernelModules = [ "nvme" ];
|
||||
};
|
||||
loader = {
|
||||
|
|
|
|||
|
|
@ -1,18 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
# This file was populated at runtime with the networking
|
||||
# details gathered from the active system.
|
||||
networking = {
|
||||
nameservers = [
|
||||
"1.1.1.1"
|
||||
];
|
||||
nameservers = [ "1.1.1.1" ];
|
||||
defaultGateway = "172.31.1.1";
|
||||
defaultGateway6 = {
|
||||
address = "fe80::1";
|
||||
|
|
@ -14,12 +12,10 @@
|
|||
usePredictableInterfaceNames = lib.mkForce false;
|
||||
interfaces = {
|
||||
eth0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
ipv4.addresses = [{
|
||||
address = "178.156.139.49";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
}];
|
||||
ipv6.addresses = [
|
||||
{
|
||||
address = "2a01:4ff:f0:9df8::1";
|
||||
|
|
@ -30,18 +26,14 @@
|
|||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
ipv4.routes = [
|
||||
{
|
||||
ipv4.routes = [{
|
||||
address = "172.31.1.1";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
ipv6.routes = [
|
||||
{
|
||||
}];
|
||||
ipv6.routes = [{
|
||||
address = "fe80::1";
|
||||
prefixLength = 128;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
# Auto-generated using compose2nix v0.1.6.
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, lib, ... }: {
|
||||
# Runtime
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
|
|
@ -35,29 +31,16 @@
|
|||
"/home/don/docker/speedtest/config:/config:rw"
|
||||
"/home/don/docker/speedtest/web:/etc/ssl/web:rw"
|
||||
];
|
||||
dependsOn = [
|
||||
"bandwidth-db"
|
||||
"bandwidth-ts"
|
||||
];
|
||||
dependsOn = [ "bandwidth-db" "bandwidth-ts" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network=container:bandwidth-ts"
|
||||
];
|
||||
extraOptions = [ "--network=container:bandwidth-ts" ];
|
||||
};
|
||||
systemd.services."podman-bandwidth" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
unitConfig.UpheldBy = [
|
||||
"podman-bandwidth-db.service"
|
||||
"podman-bandwidth-ts.service"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
unitConfig.UpheldBy =
|
||||
[ "podman-bandwidth-db.service" "podman-bandwidth-ts.service" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
virtualisation.oci-containers.containers."bandwidth-db" = {
|
||||
image = "mariadb:10";
|
||||
|
|
@ -69,30 +52,16 @@
|
|||
PGID = "1000";
|
||||
PUID = "1000";
|
||||
};
|
||||
volumes = [
|
||||
"/home/don/docker/speedtest-db:/var/lib/mysql:rw"
|
||||
];
|
||||
dependsOn = [
|
||||
"bandwidth-ts"
|
||||
];
|
||||
volumes = [ "/home/don/docker/speedtest-db:/var/lib/mysql:rw" ];
|
||||
dependsOn = [ "bandwidth-ts" ];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--network=container:bandwidth-ts"
|
||||
];
|
||||
extraOptions = [ "--network=container:bandwidth-ts" ];
|
||||
};
|
||||
systemd.services."podman-bandwidth-db" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "always";
|
||||
};
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
unitConfig.UpheldBy = [
|
||||
"podman-bandwidth-ts.service"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "always"; };
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
unitConfig.UpheldBy = [ "podman-bandwidth-ts.service" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
virtualisation.oci-containers.containers."bandwidth-ts" = {
|
||||
image = "tailscale/tailscale";
|
||||
|
|
@ -100,7 +69,8 @@
|
|||
PGID = "1000";
|
||||
PUID = "1000";
|
||||
TS_ACCEPT_DNS = "true";
|
||||
TS_AUTHKEY = "tskey-auth-k6qutwuAk221CNTRL-9L2MS7sw2SVtH2kYKCcVNVsUHKYSX5UjH";
|
||||
TS_AUTHKEY =
|
||||
"tskey-auth-k6qutwuAk221CNTRL-9L2MS7sw2SVtH2kYKCcVNVsUHKYSX5UjH";
|
||||
TS_HOSTNAME = "fred-bw";
|
||||
TS_STATE_DIR = "/var/lib/tailscale";
|
||||
};
|
||||
|
|
@ -119,21 +89,11 @@
|
|||
];
|
||||
};
|
||||
systemd.services."podman-bandwidth-ts" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 500 "no";
|
||||
};
|
||||
after = [
|
||||
"podman-network-tstest-default.service"
|
||||
];
|
||||
requires = [
|
||||
"podman-network-tstest-default.service"
|
||||
];
|
||||
partOf = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-tstest-root.target"
|
||||
];
|
||||
serviceConfig = { Restart = lib.mkOverride 500 "no"; };
|
||||
after = [ "podman-network-tstest-default.service" ];
|
||||
requires = [ "podman-network-tstest-default.service" ];
|
||||
partOf = [ "podman-compose-tstest-root.target" ];
|
||||
wantedBy = [ "podman-compose-tstest-root.target" ];
|
||||
};
|
||||
|
||||
# Networks
|
||||
|
|
@ -155,9 +115,7 @@
|
|||
# When started, this will automatically create all resources and start
|
||||
# the containers. When stopped, this will teardown all resources.
|
||||
systemd.targets."podman-compose-tstest-root" = {
|
||||
unitConfig = {
|
||||
Description = "Root target generated by compose2nix.";
|
||||
};
|
||||
unitConfig = { Description = "Root target generated by compose2nix."; };
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
services.desktopManager.cosmic.enable = true;
|
||||
services.displayManager.cosmic-greeter.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [./sway];
|
||||
}
|
||||
{ pkgs, ... }: { imports = [ ./sway ]; }
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.greetd}/bin/agreety --cmd /home/don/bin/mysway";
|
||||
command =
|
||||
"${pkgs.greetd.greetd}/bin/agreety --cmd /home/don/bin/mysway";
|
||||
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd /home/don/bin/mysway";
|
||||
user = "greeter";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
alacritty
|
||||
bemenu
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: let
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
dbus-sway-environment = pkgs.writeTextFile {
|
||||
name = "dbus-sway-environment";
|
||||
destination = "/bin/dbus-sway-environment";
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||
let
|
||||
my-python-packages = python-packages:
|
||||
with python-packages; [
|
||||
pip
|
||||
|
|
@ -19,16 +13,10 @@
|
|||
in {
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
warn-dirty = false;
|
||||
auto-optimise-store = true;
|
||||
trusted-users = [
|
||||
"root"
|
||||
"don"
|
||||
];
|
||||
trusted-users = [ "root" "don" ];
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
|
|
@ -66,10 +54,7 @@ in {
|
|||
inputMethod = {
|
||||
enable = true;
|
||||
type = "fcitx5";
|
||||
fcitx5.addons = with pkgs; [
|
||||
fcitx5-mozc
|
||||
fcitx5-gtk
|
||||
];
|
||||
fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-gtk ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -79,45 +64,30 @@ in {
|
|||
kernelParams = [ "consoleblank=60" "mem_sleep_default=deep" ];
|
||||
# extraModulePackages = [config.boot.kernelPackages.ddcci-driver];
|
||||
# kernelModules = ["i2c-dev" "ddcci_backlight"];
|
||||
loader =
|
||||
if (pkgs.hostPlatform != lib.mkDefault "aarch64-linux")
|
||||
then {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
};
|
||||
loader = if (pkgs.hostPlatform != lib.mkDefault "aarch64-linux") then {
|
||||
systemd-boot = { enable = true; };
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
grub.enable = false;
|
||||
generic-extlinux-compatible.enable = true;
|
||||
};
|
||||
plymouth = {
|
||||
enable = true;
|
||||
};
|
||||
kernel = {
|
||||
sysctl = {
|
||||
"vm.swappiness" = 10;
|
||||
};
|
||||
};
|
||||
plymouth = { enable = true; };
|
||||
kernel = { sysctl = { "vm.swappiness" = 10; }; };
|
||||
};
|
||||
|
||||
security = {
|
||||
polkit = {
|
||||
enable = true;
|
||||
};
|
||||
polkit = { enable = true; };
|
||||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{
|
||||
extraRules = [{
|
||||
users = [ "don" ];
|
||||
keepEnv = true;
|
||||
noPass = true;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -127,44 +97,26 @@ in {
|
|||
ACTION=="add|change", KERNEL=="sd[a-z]*[0-9]*|mmcblk[0-9]*p[0-9]*|nvme[0-9]*n[0-9]*p[0-9]*", ENV{ID_FS_TYPE}=="ext4", ATTR{../queue/scheduler}="none"
|
||||
'';
|
||||
};
|
||||
pcscd = {
|
||||
enable = true;
|
||||
};
|
||||
pcscd = { enable = true; };
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
};
|
||||
printing = {
|
||||
enable = true;
|
||||
};
|
||||
udisks2 = {
|
||||
enable = true;
|
||||
};
|
||||
nscd = {
|
||||
enableNsncd = true;
|
||||
};
|
||||
fwupd = {
|
||||
enable = true;
|
||||
};
|
||||
flatpak = {
|
||||
enable = true;
|
||||
};
|
||||
fstrim = {
|
||||
enable = true;
|
||||
};
|
||||
printing = { enable = true; };
|
||||
udisks2 = { enable = true; };
|
||||
nscd = { enableNsncd = true; };
|
||||
fwupd = { enable = true; };
|
||||
flatpak = { enable = true; };
|
||||
fstrim = { enable = true; };
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
tailscale = {
|
||||
enable = true;
|
||||
pulse = { enable = true; };
|
||||
};
|
||||
tailscale = { enable = true; };
|
||||
logind = {
|
||||
lidSwitchExternalPower = "ignore";
|
||||
lidSwitchDocked = "ignore";
|
||||
|
|
@ -185,12 +137,8 @@ in {
|
|||
};
|
||||
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
};
|
||||
pulseaudio = {
|
||||
enable = false;
|
||||
};
|
||||
bluetooth = { enable = true; };
|
||||
pulseaudio = { enable = false; };
|
||||
sane = {
|
||||
enable = true;
|
||||
extraBackends = [ pkgs.sane-airscan ];
|
||||
|
|
@ -220,15 +168,8 @@ in {
|
|||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
description = "Don Harper";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"scanner"
|
||||
"lp"
|
||||
"video"
|
||||
"mlocate"
|
||||
"disk"
|
||||
];
|
||||
extraGroups =
|
||||
[ "networkmanager" "wheel" "scanner" "lp" "video" "mlocate" "disk" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki"
|
||||
];
|
||||
|
|
@ -305,18 +246,10 @@ in {
|
|||
];
|
||||
|
||||
programs = {
|
||||
dconf = {
|
||||
enable = true;
|
||||
};
|
||||
light = {
|
||||
enable = true;
|
||||
};
|
||||
mtr = {
|
||||
enable = true;
|
||||
};
|
||||
kdeconnect = {
|
||||
enable = true;
|
||||
};
|
||||
dconf = { enable = true; };
|
||||
light = { enable = true; };
|
||||
mtr = { enable = true; };
|
||||
kdeconnect = { enable = true; };
|
||||
gnupg = {
|
||||
agent = {
|
||||
enable = true;
|
||||
|
|
@ -327,11 +260,11 @@ in {
|
|||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {qutebrowser = prev.qutebrowser.override {enableWideVine = true;};})
|
||||
(final: prev: {
|
||||
qutebrowser = prev.qutebrowser.override { enableWideVine = true; };
|
||||
})
|
||||
(final: super: {
|
||||
khal = super.khal.overridePythonAttrs (_: {
|
||||
doCheck = false;
|
||||
});
|
||||
khal = super.khal.overridePythonAttrs (_: { doCheck = false; });
|
||||
})
|
||||
];
|
||||
|
||||
|
|
@ -346,40 +279,28 @@ in {
|
|||
|
||||
# allow the Tailscale UDP port through the firewall
|
||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
}];
|
||||
|
||||
# allow you to SSH in over the public internet
|
||||
allowedTCPPorts = [ 22 ];
|
||||
interfaces = {
|
||||
"tailscale0" = {
|
||||
allowedTCPPorts = [
|
||||
22
|
||||
8080
|
||||
8443
|
||||
];
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
allowedTCPPorts = [ 22 8080 8443 ];
|
||||
allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -413,5 +334,6 @@ in {
|
|||
"x-scheme-handler/about" = "org.qutebrowser.qutebrowser.desktop";
|
||||
"x-scheme-handler/unknown" = "org.qutebrowser.qutebrowser.desktop";
|
||||
};
|
||||
environment.sessionVariables.DEFAULT_BROWSER = "${pkgs.qutebrowser}/bin/qutebrowser";
|
||||
environment.sessionVariables.DEFAULT_BROWSER =
|
||||
"${pkgs.qutebrowser}/bin/qutebrowser";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: let
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
readlink = "${pkgs.coreutils}/bin/readlink";
|
||||
notify-send = "${pkgs.libnotify}/bin/notify-send";
|
||||
in {
|
||||
|
|
@ -13,9 +14,7 @@ in {
|
|||
${notify-send} --urgency=low --icon=system-reboot "Reboot is needed for a NixOS upgrade."
|
||||
fi
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
};
|
||||
systemd.user.timers.detect-reboot-for-upgrade = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
programs = {
|
||||
# GAMES!
|
||||
steam = {
|
||||
|
|
@ -16,8 +9,6 @@
|
|||
# # Open ports in the firewall for Source Dedicated Server
|
||||
# dedicatedServer.openFirewall = true;
|
||||
};
|
||||
gamemode = {
|
||||
enable = true;
|
||||
};
|
||||
gamemode = { enable = true; };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
{ pkgs, inputs, ... }: {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
environment.systemPackages = with pkgs; [ gnome-boxes ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
readlink = "${pkgs.coreutils}/bin/readlink";
|
||||
notify-send = "${pkgs.libnotify}/bin/notify-send";
|
||||
in {
|
||||
|
|
@ -32,9 +29,7 @@ in {
|
|||
${notify-send} --urgency=low --icon=system-reboot "Reboot is needed for a NixOS upgrade."
|
||||
fi
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
};
|
||||
};
|
||||
timers = {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../server
|
||||
];
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./hardware-configuration.nix ../../server ];
|
||||
networking.hostName = "www2";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,26 +1,11 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ehci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"ums_realtek"
|
||||
"sd_mod"
|
||||
"sr_mod"
|
||||
];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "ehci_pci" "ahci" "usbhid" "ums_realtek" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
@ -45,5 +30,6 @@
|
|||
# networking.interfaces.enp0s25.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue