Browse Source

Delete activation and update nixpkgs

Signed-off-by: Magic_RB <magic_rb@redalder.org>
master
Magic_RB 1 week ago
parent
commit
30f316390b
Signed by: Magic_RB GPG Key ID: 08D5287CC5DDCA0E
3 changed files with 4 additions and 66 deletions
  1. +4
    -4
      flake.lock
  2. +0
    -35
      modules/activation/activation.sh
  3. +0
    -27
      modules/activation/default.nix

+ 4
- 4
flake.lock View File

@ -2,10 +2,10 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1615540211,
"narHash": "sha256-GCcG/w9qDVxVz0LvC61GZbPY6opWndrOiN7xEJAUdlw=",
"path": "/nix/store/2a8jagnlpdrg3bdy3q5j2wsmd7hcdq9p-source",
"rev": "aceb539221d6c4ad92c361ed32beb90e201b9204",
"lastModified": 1617271991,
"narHash": "sha256-VdzjIQaT1FtycNid0iPSVr44Jrstoox6QRLrwCY1uG0=",
"path": "/nix/store/p86a44r69akjvyg0nid33kh9mg15h9lq-source",
"rev": "da7f4c4842520167f65c20ad75ecdbd14e27ae91",
"type": "path"
},
"original": {


+ 0
- 35
modules/activation/activation.sh View File

@ -1,35 +0,0 @@
# Check whether NixOS or another distro is installed
# ANOTHER_DISTRO=$(
# if [[ -f /etc/os-release ]] ; then
# source /etc/os-release
# if [[ -e "$NAME" "NixSmth" ]] && [[ -e "$ID" "nixsmth" ]] ; then
# false
# echo $?
# else
# true
# echo $?
# fi
# else
# false
# echo $?
# fi
# )
# if [[ "$ANOTHER_DISTRO" == "0" ]] ; then
# echo "Refusing to activate when another distro is installed!"
# exit 1
# fi
# ${concatMapStringsSep "\n"
# (file:
# let
# cmd = if file.copy then "cp" else "ln -s";
# in
# ''
# mkdir -p $(dirname ${file.destination})
# ${cmd} ${file.source} ${file.destination}
# ''
# )
# config.system.environment.files
# }

+ 0
- 27
modules/activation/default.nix View File

@ -1,27 +0,0 @@
{ pkgs, lib, config, nglib, ... }:
with lib;
let
cfg = config.activation;
in
{
options.activation = {
enable = mkOption {
default = true;
description = "Enable activation script.";
type = types.bool;
};
script = mkOption {
description = "Activation script.";
type = types.path;
readOnly = true;
};
};
config.activation = mkIf cfg.enable {
script = nglib.writeSubstitutedShellScript {
name = "activation";
file = ./activation.sh;
substitutes = {};
};
};
}

Loading…
Cancel
Save